Enum Class IdlToken

java.lang.Object
java.lang.Enum<IdlToken>
software.amazon.smithy.model.loader.IdlToken
All Implemented Interfaces:
Serializable, Comparable<IdlToken>, Constable

public enum IdlToken extends Enum<IdlToken>
Represents a parsed token from the Smithy IDL.
  • Enum Constant Details

    • SPACE

      public static final IdlToken SPACE
    • NEWLINE

      public static final IdlToken NEWLINE
    • COMMA

      public static final IdlToken COMMA
    • COMMENT

      public static final IdlToken COMMENT
    • DOC_COMMENT

      public static final IdlToken DOC_COMMENT
    • AT

      public static final IdlToken AT
    • STRING

      public static final IdlToken STRING
    • TEXT_BLOCK

      public static final IdlToken TEXT_BLOCK
    • COLON

      public static final IdlToken COLON
    • WALRUS

      public static final IdlToken WALRUS
    • IDENTIFIER

      public static final IdlToken IDENTIFIER
    • DOT

      public static final IdlToken DOT
    • POUND

      public static final IdlToken POUND
    • DOLLAR

      public static final IdlToken DOLLAR
    • NUMBER

      public static final IdlToken NUMBER
    • LBRACE

      public static final IdlToken LBRACE
    • RBRACE

      public static final IdlToken RBRACE
    • LBRACKET

      public static final IdlToken LBRACKET
    • RBRACKET

      public static final IdlToken RBRACKET
    • LPAREN

      public static final IdlToken LPAREN
    • RPAREN

      public static final IdlToken RPAREN
    • EQUAL

      public static final IdlToken EQUAL
    • EOF

      public static final IdlToken EOF
    • ERROR

      public static final IdlToken ERROR
  • Method Details

    • values

      public static IdlToken[] 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 IdlToken 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
    • getDebug

      public String getDebug()
    • getDebug

      public String getDebug(CharSequence lexeme)
    • isWhitespace

      public boolean isWhitespace()