Contents
- Description
- Nested Class Summary
- Enum Constant Summary
- Method Summary
- Enum Constant Details
- INVALID
- END
- STRING
- NUMBER
- IDENTIFIER
- OPEN_BRACKET
- CLOSE_BRACKET
- OPEN_SQUARE_BRACKET
- CLOSE_SQUARE_BRACKET
- COMMA
- FUNCTION_CALL
- UNARY_MINUS
- UNARY_PLUS
- LOGICAL_NOT
- BITWISE_NOT
- EXPONENTIATION
- REMAINDER
- DIVIDE
- MULTIPLY
- MINUS
- PLUS
- GREATER_EQUAL
- GREATER
- LESS_EQUAL
- LESS
- NOT_EQUAL
- EQUAL
- BITWISE_AND
- BITWISE_XOR
- BITWISE_OR
- LOGICAL_AND
- LOGICAL_OR
- Method Details
Enum Class Token
- All Implemented Interfaces:
Serializable, Comparable<Token>, Constable, Supplier<String>
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancontainsAnyFlag(EnumSet<TokenFlags> testFlags) get()getFlags()intbooleanbooleanbooleanisList()booleanbooleanbooleanbooleanbooleanbooleanbooleanisUnary()static TokenReturns the enum constant of this class with the specified name.static Token[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
INVALID
-
END
-
STRING
-
NUMBER
-
IDENTIFIER
-
OPEN_BRACKET
-
CLOSE_BRACKET
-
OPEN_SQUARE_BRACKET
-
CLOSE_SQUARE_BRACKET
-
COMMA
-
FUNCTION_CALL
-
UNARY_MINUS
-
UNARY_PLUS
-
LOGICAL_NOT
-
BITWISE_NOT
-
EXPONENTIATION
-
REMAINDER
-
DIVIDE
-
MULTIPLY
-
MINUS
-
PLUS
-
GREATER_EQUAL
-
GREATER
-
LESS_EQUAL
-
LESS
-
NOT_EQUAL
-
EQUAL
-
BITWISE_AND
-
BITWISE_XOR
-
BITWISE_OR
-
LOGICAL_AND
-
LOGICAL_OR
-
-
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
-
get
-
getPrecedence
public int getPrecedence() -
getFlags
-
containsAnyFlag
-
isEndToken
public boolean isEndToken() -
isOperand
public boolean isOperand() -
isLiteral
public boolean isLiteral() -
isOperator
public boolean isOperator() -
isRightToLeft
public boolean isRightToLeft() -
canBeUnary
public boolean canBeUnary() -
getUnaryVariant
-
isUnary
public boolean isUnary() -
isOpenBracket
public boolean isOpenBracket() -
isOpenTuple
public boolean isOpenTuple() -
isCloseBracket
public boolean isCloseBracket() -
getMatchingBracket
-
isList
public boolean isList()
-