Enum Class TokenKind

java.lang.Object
java.lang.Enum<TokenKind>
org.infosmid.stream.dsl.TokenKind
All Implemented Interfaces:
Serializable, Comparable<TokenKind>, Constable

public enum TokenKind extends Enum<TokenKind>
Enumeration of all the token types that may be found in a DSL definition stream. DSL variants may use some subset of these tokens. For example stream DSL doesn't use the LT token, it is used by the task DSL. The tokenizer in use will decide which subset are built for a particular DSL.
  • Enum Constant Details

    • IDENTIFIER

      public static final TokenKind IDENTIFIER
    • DOUBLE_MINUS

      public static final TokenKind DOUBLE_MINUS
    • EQUALS

      public static final TokenKind EQUALS
    • AND

      public static final TokenKind AND
    • ANDAND

      public static final TokenKind ANDAND
    • DOUBLEPIPE

      public static final TokenKind DOUBLEPIPE
    • ARROW

      public static final TokenKind ARROW
    • PIPE

      public static final TokenKind PIPE
    • OPEN_PAREN

      public static final TokenKind OPEN_PAREN
    • CLOSE_PAREN

      public static final TokenKind CLOSE_PAREN
    • NEWLINE

      public static final TokenKind NEWLINE
    • STAR

      public static final TokenKind STAR
    • COLON

      public static final TokenKind COLON
    • GT

      public static final TokenKind GT
    • LT

      public static final TokenKind LT
    • SEMICOLON

      public static final TokenKind SEMICOLON
    • REFERENCE

      public static final TokenKind REFERENCE
    • DOT

      public static final TokenKind DOT
    • LITERAL_STRING

      public static final TokenKind LITERAL_STRING
    • SLASH

      public static final TokenKind SLASH
    • HASH

      public static final TokenKind HASH
  • Method Details

    • values

      public static TokenKind[] 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

      public static TokenKind valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TokenKind>
    • hasPayload

      public boolean hasPayload()
    • getLength

      public int getLength()
    • getTokenChars

      public char[] getTokenChars()
      Returns:
      the chars representing simple fixed token (eg. : > --)