Class JavaConventions

java.lang.Object
net.mcreator.java.JavaConventions

public class JavaConventions extends Object
  • Field Details

    • JAVA_RESERVED_WORDS

      public static final Set<String> JAVA_RESERVED_WORDS
  • Constructor Details

    • JavaConventions

      public JavaConventions()
  • Method Details

    • convertToValidClassName

      public static String convertToValidClassName(String source)
    • isValidJavaIdentifier

      public static boolean isValidJavaIdentifier(String s)
    • containsInvalidJavaNameCharacters

      public static boolean containsInvalidJavaNameCharacters(String text)
    • escapeStringForJava

      public static String escapeStringForJava(String source)
    • isStringReservedJavaWord

      public static boolean isStringReservedJavaWord(String name)
    • isLetterOrDigit

      public static boolean isLetterOrDigit(char c)