Class IdentifierNameUtils

java.lang.Object
de.firemage.autograder.core.integrated.IdentifierNameUtils

public final class IdentifierNameUtils extends Object
  • Method Details

    • isUpperSnakeCase

      public static boolean isUpperSnakeCase(String identifier)
    • isLowerCamelCase

      public static boolean isLowerCamelCase(String identifier)
    • isUpperCamelCase

      public static boolean isUpperCamelCase(String identifier)
    • isCamelCase

      public static boolean isCamelCase(String identifier)
    • toUpperSnakeCase

      public static String toUpperSnakeCase(String identifier)
    • toLowerCamelCase

      public static String toLowerCamelCase(String identifier)
    • split

      public static Stream<String> split(String identifier)
      Splits an identifier into its parts. For example "getFooBar" will be split into "get", "foo" and "bar".
      Parameters:
      identifier - the identifier to split up, must not be null and should follow a known naming convention
      Returns:
      the parts of the identifier, every word is in lowercase