Class SimpleTokenType
- java.lang.Object
-
- org.apache.camel.language.simple.types.SimpleTokenType
-
public final class SimpleTokenType extends Object
The different token types used by the simple parser.
-
-
Constructor Summary
Constructors Constructor Description SimpleTokenType(TokenType type, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenType
getType()
Gets the type of this tokenString
getValue()
Gets the input value in this tokenboolean
isBinary()
Whether the type is binary operatorboolean
isBooleanValue()
Whether the type is a boolean valueboolean
isDoubleQuote()
Whether the type is double quoteboolean
isEol()
Whether the type is eolboolean
isEscape()
Whether the type is escapeboolean
isFunctionEnd()
Whether the type is a function endboolean
isFunctionStart()
Whether the type is a function startboolean
isLogical()
Whether the type is logical operatorboolean
isMinusValue()
Whether the type is a minus operatorboolean
isNullValue()
Whether the type is a null valueboolean
isNumericValue()
Whether the type is a numeric value (can be integer based or floating point)boolean
isSingleQuote()
Whether the type is single quoteboolean
isUnary()
Whether the type is unary operatorboolean
isWhitespace()
Whether the type is whitespaceString
toString()
-
-
-
Method Detail
-
getType
public TokenType getType()
Gets the type of this token- Returns:
- the type
-
getValue
public String getValue()
Gets the input value in this token- Returns:
- the value
-
isWhitespace
public boolean isWhitespace()
Whether the type is whitespace
-
isEol
public boolean isEol()
Whether the type is eol
-
isEscape
public boolean isEscape()
Whether the type is escape
-
isSingleQuote
public boolean isSingleQuote()
Whether the type is single quote
-
isDoubleQuote
public boolean isDoubleQuote()
Whether the type is double quote
-
isFunctionStart
public boolean isFunctionStart()
Whether the type is a function start
-
isFunctionEnd
public boolean isFunctionEnd()
Whether the type is a function end
-
isBinary
public boolean isBinary()
Whether the type is binary operator
-
isUnary
public boolean isUnary()
Whether the type is unary operator
-
isLogical
public boolean isLogical()
Whether the type is logical operator
-
isNullValue
public boolean isNullValue()
Whether the type is a null value
-
isMinusValue
public boolean isMinusValue()
Whether the type is a minus operator
-
isBooleanValue
public boolean isBooleanValue()
Whether the type is a boolean value
-
isNumericValue
public boolean isNumericValue()
Whether the type is a numeric value (can be integer based or floating point)
-
-