Class IdentifierNameUtils
java.lang.Object
de.firemage.autograder.core.integrated.IdentifierNameUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCamelCase(String identifier) static booleanisLowerCamelCase(String identifier) static booleanisUpperCamelCase(String identifier) static booleanisUpperSnakeCase(String identifier) Splits an identifier into its parts.static StringtoLowerCamelCase(String identifier) static StringtoUpperSnakeCase(String identifier)
-
Method Details
-
isUpperSnakeCase
-
isLowerCamelCase
-
isUpperCamelCase
-
isCamelCase
-
toUpperSnakeCase
-
toLowerCamelCase
-
split
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
-