
io.protostuff.generator.java.EnumUtil Maven / Gradle / Ivy
package io.protostuff.generator.java;
import io.protostuff.compiler.model.EnumConstant;
import io.protostuff.generator.Formatter;
/**
* @author Kostiantyn Shchepanovskyi
*/
public class EnumUtil {
public static String getName(EnumConstant constant) {
String name = constant.getName();
String underscored = Formatter.toUnderscoreCase(name);
return Formatter.toUpperCase(underscored);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy