Class SimpleTokenType
java.lang.Object
org.apache.camel.language.simple.types.SimpleTokenType
The different token types used by the simple parser.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()Gets the type of this tokengetValue()Gets the input value in this tokenbooleanisBinary()Whether the type is binary operatorbooleanWhether the type is a boolean valuebooleanWhether the type is double quotebooleanisEol()Whether the type is eolbooleanisEscape()Whether the type is escapebooleanWhether the type is a function endbooleanWhether the type is a function startbooleanWhether the type is logical operatorbooleanWhether the type is a minus operatorbooleanWhether the type is a null valuebooleanWhether the type is a numeric value (can be integer based or floating point)booleanWhether the type is single quotebooleanisUnary()Whether the type is unary operatorbooleanWhether the type is whitespacetoString()
-
Constructor Details
-
SimpleTokenType
-
-
Method Details
-
getType
Gets the type of this token- Returns:
- the type
-
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) -
toString
-