Class SimpleTokenType


  • public final class SimpleTokenType
    extends Object
    The different token types used by the simple parser.
    • Constructor Detail

      • SimpleTokenType

        public SimpleTokenType​(TokenType type,
                               String value)
    • 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)