Enum Class MemScanner.TokenType

java.lang.Object
java.lang.Enum<MemScanner.TokenType>
eu.bandm.tools.d2d2.base.MemScanner.TokenType
All Implemented Interfaces:
Serializable, Comparable<MemScanner.TokenType>, java.lang.constant.Constable
Enclosing class:
MemScanner

public static enum MemScanner.TokenType extends Enum<MemScanner.TokenType>
Non-overlapping Categories of the recognized tokens.
  • Enum Constant Details

    • eoinput

      public static final MemScanner.TokenType eoinput
      Physically the end of the contained character data reached.
    • whitespace

      public static final MemScanner.TokenType whitespace
      Longest sequence of blank characters, tabs, and line feed consumed.
    • comment

      public static final MemScanner.TokenType comment
      A single line comment (including its terminatign line feed) or a multi-line comment decoded.
    • commandchar

      public static final MemScanner.TokenType commandchar
      The currently valid command-lead-in character. This is a category with dynamically changing extension.
    • ident

      public static final MemScanner.TokenType ident
      An identifier, as used for definition names and input tags.
    • numeric

      public static final MemScanner.TokenType numeric
      A hexadecimal numeric representation of a character. Corresponds to the maximal sequence starting with Chars.charset_numeric_initial followed by arbitrary many Chars.charset_numeric_initial_or_subsequent.

      The first character must be a decimal one, thus hex numbers can be preceded by zeros for the use as a tag, as in #0a123".

    • closeLeadIn

      public static final MemScanner.TokenType closeLeadIn
      A slash character which is neither start of a comment nor of a triple-slash sequence
    • incompleteClose

      public static final MemScanner.TokenType incompleteClose
      A sequemce of three slashes. Forces the end-of-input to an element contents which is intentionally (and provisionally) left incomplete.
    • closeChar

      public static final MemScanner.TokenType closeChar
      A parenthesis chracater which has previously activated by an open parenthesis character. This is a category with dynamically changing extension.
    • otherchars

      public static final MemScanner.TokenType otherchars
      All other (maximal) sequences of characters. (Also sequences of too many hex digits.) This is a category with dynamically changing extension.
  • Method Details

    • values

      public static MemScanner.TokenType[] 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 MemScanner.TokenType 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