Package com.google.googlejavaformat.java
Enum TypeNameClassifier.TyParseState
java.lang.Object
java.lang.Enum<TypeNameClassifier.TyParseState>
com.google.googlejavaformat.java.TypeNameClassifier.TyParseState
- All Implemented Interfaces:
Serializable,Comparable<TypeNameClassifier.TyParseState>,java.lang.constant.Constable
- Enclosing class:
TypeNameClassifier
A state machine for classifying qualified names.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn ambiguous type prefix.The current prefix is a type, followed by a single static member access.Anything not represented by one of the other states.The start state.The current prefix is a type. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract TypeNameClassifier.TyParseStateTransition function.Returns the enum constant of this type with the specified name.static TypeNameClassifier.TyParseState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
START
The start state. -
TYPE
The current prefix is a type. -
FIRST_STATIC_MEMBER
The current prefix is a type, followed by a single static member access. -
REJECT
Anything not represented by one of the other states. -
AMBIGUOUS
An ambiguous type prefix.
-
-
Field Details
-
isSingleUnit
private final boolean isSingleUnit
-
-
Constructor Details
-
TyParseState
private TyParseState(boolean isSingleUnit)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isSingleUnit
public boolean isSingleUnit() -
next
Transition function.
-