Class Lexer.Tokens<T extends TokenType>

java.lang.Object
nz.org.riskscape.dsl.Lexer.Tokens<T>
Enclosing class:
Lexer<T extends TokenType>

public static class Lexer.Tokens<T extends TokenType> extends Object

Meta-class object for token type enumeration. Works around some limitations with enums, reflection and generics

  • Field Details

  • Constructor Details

    • Tokens

      public Tokens(Class<T> enumClass, T eofToken, List<T> newLines)
  • Method Details

    • getConstants

      public T[] getConstants()