Enum TokenType

java.lang.Object
java.lang.Enum<TokenType>
org.pipservices3.expressions.tokenizers.TokenType
All Implemented Interfaces:
Serializable, Comparable<TokenType>, Constable

public enum TokenType extends Enum<TokenType>
Types (categories) of tokens such as "number", "symbol" or "word".
  • Enum Constant Details

    • Unknown

      public static final TokenType Unknown
    • Eof

      public static final TokenType Eof
    • Eol

      public static final TokenType Eol
    • Float

      public static final TokenType Float
    • Integer

      public static final TokenType Integer
    • HexDecimal

      public static final TokenType HexDecimal
    • Number

      public static final TokenType Number
    • Symbol

      public static final TokenType Symbol
    • Quoted

      public static final TokenType Quoted
    • Word

      public static final TokenType Word
    • Keyword

      public static final TokenType Keyword
    • Whitespace

      public static final TokenType Whitespace
    • Comment

      public static final TokenType Comment
    • Special

      public static final TokenType Special
  • Method Details

    • values

      public static TokenType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TokenType valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null