Package net.fauxpark.stringes
Enum Lexer.SymbolPriority
- java.lang.Object
-
- java.lang.Enum<Lexer.SymbolPriority>
-
- net.fauxpark.stringes.Lexer.SymbolPriority
-
- All Implemented Interfaces:
Serializable
,Comparable<Lexer.SymbolPriority>
,java.lang.constant.Constable
public static enum Lexer.SymbolPriority extends Enum<Lexer.SymbolPriority>
Used to manipulate the order in which symbol (non-regex) rules are tested.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Method Summary
Modifier and Type Method Description static Lexer.SymbolPriority
valueOf(String name)
Returns the enum constant of this type with the specified name.static Lexer.SymbolPriority[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LAST
public static final Lexer.SymbolPriority LAST
Test symbol after testing regex rules. This is the default value for all symbol rules.
-
FIRST
public static final Lexer.SymbolPriority FIRST
Test symbol before testing any regex rules.
-
-
Method Detail
-
values
public static Lexer.SymbolPriority[] 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
public static Lexer.SymbolPriority valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-