Enum SourceParser.State
- java.lang.Object
-
- java.lang.Enum<SourceParser.State>
-
- org.inferred.freebuilder.processor.source.SourceParser.State
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SourceParser.State>
- Enclosing class:
- SourceParser
private static enum SourceParser.State extends java.lang.Enum<SourceParser.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK_COMMENTBLOCK_COMMENT_STARCHAR_LITERALCHAR_LITERAL_ESCAPECODELINE_COMMENTSLASHSTRING_LITERALSTRING_LITERAL_ESCAPE
-
Constructor Summary
Constructors Modifier Constructor Description privateState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SourceParser.StatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SourceParser.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CODE
public static final SourceParser.State CODE
-
SLASH
public static final SourceParser.State SLASH
-
STRING_LITERAL
public static final SourceParser.State STRING_LITERAL
-
STRING_LITERAL_ESCAPE
public static final SourceParser.State STRING_LITERAL_ESCAPE
-
CHAR_LITERAL
public static final SourceParser.State CHAR_LITERAL
-
CHAR_LITERAL_ESCAPE
public static final SourceParser.State CHAR_LITERAL_ESCAPE
-
LINE_COMMENT
public static final SourceParser.State LINE_COMMENT
-
BLOCK_COMMENT
public static final SourceParser.State BLOCK_COMMENT
-
BLOCK_COMMENT_STAR
public static final SourceParser.State BLOCK_COMMENT_STAR
-
-
Method Detail
-
values
public static SourceParser.State[] 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 (SourceParser.State c : SourceParser.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SourceParser.State 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
-
-