Enum PatternParser.ParserState
java.lang.Object
java.lang.Enum<PatternParser.ParserState>
org.apache.logging.log4j.core.pattern.PatternParser.ParserState
- All Implemented Interfaces:
Serializable
,Comparable<PatternParser.ParserState>
,java.lang.constant.Constable
- Enclosing class:
PatternParser
The states the parser can be in while parsing the pattern.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIn converter name state.Dot state.Literal state.Max state.Min state. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PatternParser.ParserState
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 Details
-
LITERAL_STATE
Literal state. -
CONVERTER_STATE
In converter name state. -
DOT_STATE
Dot state. -
MIN_STATE
Min state. -
MAX_STATE
Max state.
-
-
Constructor Details
-
ParserState
private ParserState()
-
-
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
-