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:
java.io.Serializable,java.lang.Comparable<TypeNameClassifier.TyParseState>
- Enclosing class:
- TypeNameClassifier
private static enum TypeNameClassifier.TyParseState extends java.lang.Enum<TypeNameClassifier.TyParseState>
A state machine for classifying qualified names.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AMBIGUOUSAn ambiguous type prefix.FIRST_STATIC_MEMBERThe current prefix is a type, followed by a single static member access.REJECTAnything not represented by one of the other states.STARTThe start state.TYPEThe current prefix is a type.
-
Field Summary
Fields Modifier and Type Field Description private booleanisSingleUnit
-
Constructor Summary
Constructors Modifier Constructor Description privateTyParseState(boolean isSingleUnit)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanisSingleUnit()abstract TypeNameClassifier.TyParseStatenext(TypeNameClassifier.JavaCaseFormat n)Transition function.static TypeNameClassifier.TyParseStatevalueOf(java.lang.String name)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 Detail
-
START
public static final TypeNameClassifier.TyParseState START
The start state.
-
TYPE
public static final TypeNameClassifier.TyParseState TYPE
The current prefix is a type.
-
FIRST_STATIC_MEMBER
public static final TypeNameClassifier.TyParseState FIRST_STATIC_MEMBER
The current prefix is a type, followed by a single static member access.
-
REJECT
public static final TypeNameClassifier.TyParseState REJECT
Anything not represented by one of the other states.
-
AMBIGUOUS
public static final TypeNameClassifier.TyParseState AMBIGUOUS
An ambiguous type prefix.
-
-
Method Detail
-
values
public static TypeNameClassifier.TyParseState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TypeNameClassifier.TyParseState c : TypeNameClassifier.TyParseState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeNameClassifier.TyParseState valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isSingleUnit
public boolean isSingleUnit()
-
next
public abstract TypeNameClassifier.TyParseState next(TypeNameClassifier.JavaCaseFormat n)
Transition function.
-
-