Package com.google.googlejavaformat.java
Class TypeNameClassifier
java.lang.Object
com.google.googlejavaformat.java.TypeNameClassifier
Heuristics for classifying qualified names as types.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCase formats used in Java identifiers.private static enumA state machine for classifying qualified names. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontypePrefixLength(List<String> nameParts) Returns the end index (inclusive) of the longest prefix that matches the naming conventions of a type or static field access, or -1 if no such prefix was found.
-
Constructor Details
-
TypeNameClassifier
private TypeNameClassifier()
-
-
Method Details
-
typePrefixLength
Returns the end index (inclusive) of the longest prefix that matches the naming conventions of a type or static field access, or -1 if no such prefix was found.Examples:
- ClassName
- ClassName.staticMemberName
- com.google.ClassName.InnerClass.staticMemberName
-