Enum PushbackTokenizer.Token
- java.lang.Object
-
- java.lang.Enum<PushbackTokenizer.Token>
-
- org.openstreetmap.josm.data.osm.search.PushbackTokenizer.Token
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PushbackTokenizer.Token>
- Enclosing class:
- PushbackTokenizer
public static enum PushbackTokenizer.Token extends java.lang.Enum<PushbackTokenizer.Token>
The token types that may be read
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLONColon :EOFMarks the end of the inputEQUALSThe equals sign (=)GREATER_THANGreater than sign (>)KEYA textLEFT_PARENTopening parentheses token (LESS_THANLess than sign (<)NOTNot token (-)OROr token (or) (|)QUESTION_MARKA question mark (?)RIGHT_PARENTclosing parentheses token )TILDEThe tilde sign (~)XORXor token (xor) (^)
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringname
-
Constructor Summary
Constructors Modifier Constructor Description privateToken(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()static PushbackTokenizer.TokenvalueOf(java.lang.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 (>)
-
-
Field Detail
-
name
private final java.lang.String name
-
-
Constructor Detail
-
Token
private Token(java.lang.String name)
-
-
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(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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<PushbackTokenizer.Token>
-
-