Enum 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>
- Enclosing class:
- PushbackTokenizer
public static enum PushbackTokenizer.Token extends Enum<PushbackTokenizer.Token>
The token types that may be read
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLON
Colon :EOF
Marks the end of the inputEQUALS
The equals sign (=)GREATER_THAN
Greater than sign (>)KEY
A textLEFT_PARENT
opening parentheses token (LESS_THAN
Less than sign (<)NOT
Not token (-)OR
Or token (or) (|)QUESTION_MARK
A question mark (?)RIGHT_PARENT
closing parentheses token )TILDE
The tilde sign (~)XOR
Xor token (xor) (^)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static PushbackTokenizer.Token
valueOf(String name)
Returns the enum constant of this type with the specified name.static PushbackTokenizer.Token[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT
public static final PushbackTokenizer.Token NOT
Not token (-)
-
OR
public static final PushbackTokenizer.Token OR
Or token (or) (|)
-
XOR
public static final PushbackTokenizer.Token XOR
Xor token (xor) (^)
-
LEFT_PARENT
public static final PushbackTokenizer.Token LEFT_PARENT
opening parentheses token (
-
RIGHT_PARENT
public static final PushbackTokenizer.Token RIGHT_PARENT
closing parentheses token )
-
COLON
public static final PushbackTokenizer.Token COLON
Colon :
-
EQUALS
public static final PushbackTokenizer.Token EQUALS
The equals sign (=)
-
TILDE
public static final PushbackTokenizer.Token TILDE
The tilde sign (~)
-
KEY
public static final PushbackTokenizer.Token KEY
A text
-
QUESTION_MARK
public static final PushbackTokenizer.Token QUESTION_MARK
A question mark (?)
-
EOF
public static final PushbackTokenizer.Token EOF
Marks the end of the input
-
LESS_THAN
public static final PushbackTokenizer.Token LESS_THAN
Less than sign (<)
-
GREATER_THAN
public static final PushbackTokenizer.Token GREATER_THAN
Greater than sign (>)
-
-
Method Detail
-
values
public static PushbackTokenizer.Token[] 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 (PushbackTokenizer.Token c : PushbackTokenizer.Token.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PushbackTokenizer.Token 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<PushbackTokenizer.Token>
-
-