Enum Class TokenType

java.lang.Object
java.lang.Enum<TokenType>
com.pnfsoftware.jeb.util.encoding.jflex.TokenType
All Implemented Interfaces:
Serializable, Comparable<TokenType>, Constable

public enum TokenType extends Enum<TokenType>
These are the various token types supported by SyntaxPane.
  • Enum Constant Details

    • OPERATOR

      public static final TokenType OPERATOR
    • DELIMITER

      public static final TokenType DELIMITER
    • KEYWORD

      public static final TokenType KEYWORD
    • KEYWORD2

      public static final TokenType KEYWORD2
    • IDENTIFIER

      public static final TokenType IDENTIFIER
    • NUMBER

      public static final TokenType NUMBER
    • STRING

      public static final TokenType STRING
    • STRING2

      public static final TokenType STRING2
    • COMMENT

      public static final TokenType COMMENT
    • COMMENT2

      public static final TokenType COMMENT2
    • REGEX

      public static final TokenType REGEX
    • REGEX2

      public static final TokenType REGEX2
    • TYPE

      public static final TokenType TYPE
    • TYPE2

      public static final TokenType TYPE2
    • TYPE3

      public static final TokenType TYPE3
    • DEFAULT

      public static final TokenType DEFAULT
    • WARNING

      public static final TokenType WARNING
    • ERROR

      public static final TokenType ERROR
  • Method Details

    • values

      public static 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 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
    • isComment

      public static boolean isComment(Token t)
      Tests if the given token is a Comment Token.
      Parameters:
      t -
      Returns:
    • isKeyword

      public static boolean isKeyword(Token t)
      Tests if the given token is a Keyword Token.
      Parameters:
      t -
      Returns:
    • isString

      public static boolean isString(Token t)
      Tests if the given token is a String Token.
      Parameters:
      t -
      Returns: