Enum PatternParser.ParserState
- java.lang.Object
-
- java.lang.Enum<PatternParser.ParserState>
-
- org.apache.logging.log4j.core.pattern.PatternParser.ParserState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PatternParser.ParserState>
- Enclosing class:
- PatternParser
private static enum PatternParser.ParserState extends java.lang.Enum<PatternParser.ParserState>
The states the parser can be in while parsing the pattern.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONVERTER_STATE
In converter name state.DOT_STATE
Dot state.LITERAL_STATE
Literal state.MAX_STATE
Max state.MIN_STATE
Min state.
-
Constructor Summary
Constructors Modifier Constructor Description private
ParserState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PatternParser.ParserState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PatternParser.ParserState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LITERAL_STATE
public static final PatternParser.ParserState LITERAL_STATE
Literal state.
-
CONVERTER_STATE
public static final PatternParser.ParserState CONVERTER_STATE
In converter name state.
-
DOT_STATE
public static final PatternParser.ParserState DOT_STATE
Dot state.
-
MIN_STATE
public static final PatternParser.ParserState MIN_STATE
Min state.
-
MAX_STATE
public static final PatternParser.ParserState MAX_STATE
Max state.
-
-
Method Detail
-
values
public static PatternParser.ParserState[] 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 (PatternParser.ParserState c : PatternParser.ParserState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PatternParser.ParserState 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
-
-