Enum Class PushbackTokenizer.Token
java.lang.Object
java.lang.Enum<PushbackTokenizer.Token>
org.openstreetmap.josm.data.osm.search.PushbackTokenizer.Token
- All Implemented Interfaces:
Serializable,Comparable<PushbackTokenizer.Token>,Constable
- Enclosing class:
- PushbackTokenizer
The token types that may be read
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionColon :Marks the end of the inputThe equals sign (=)Greater than sign (>)A textopening parentheses token (Less than sign (<)Not token (-)Or token (or) (|)A question mark (?)closing parentheses token )The tilde sign (~)Xor token (xor) (^) -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoString()static PushbackTokenizer.TokenReturns the enum constant of this class with the specified name.static PushbackTokenizer.Token[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT
Not token (-) -
OR
Or token (or) (|) -
XOR
Xor token (xor) (^) -
LEFT_PARENT
opening parentheses token ( -
RIGHT_PARENT
closing parentheses token ) -
COLON
Colon : -
EQUALS
The equals sign (=) -
TILDE
The tilde sign (~) -
KEY
A text -
QUESTION_MARK
A question mark (?) -
EOF
Marks the end of the input -
LESS_THAN
Less than sign (<) -
GREATER_THAN
Greater than sign (>)
-
-
Field Details
-
name
-
-
Constructor Details
-
Token
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<PushbackTokenizer.Token>
-