public static Class<? extends CObject> getAmClass(@Nonnull String amTypeName) throws ClassNotFoundException { int genericsTypeIndex = amTypeName.indexOf('<'); String name = genericsTypeIndex == -1 ? amTypeName : amTypeName.substring(0, genericsTypeIndex); String className = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, name); //noinspection unchecked return (Class<CObject>) Class.forName(AM_PACKAGE_NAME + '.' + className); }
public String value() { return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, name()); }
@Override public String toString() { return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, name()); }
public String value() { return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, name()); }
EscapingMode(boolean escapesQuotes, @Nullable ContentKind contentKind, boolean internalOnly) { this.directiveName = "|" + CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, name()); this.isHtmlEmbeddable = escapesQuotes; this.contentKind = contentKind; this.isInternalOnly = internalOnly; }
@Override public String getOreDictKey() { return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, name()); }
public String key() { return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_UNDERSCORE, name()); }