Enum Tokens

java.lang.Object
java.lang.Enum<Tokens>
org.jboss.jdeparser.Tokens
All Implemented Interfaces:
Serializable, Comparable<Tokens>, java.lang.constant.Constable, Token, Writable

enum Tokens extends Enum<Tokens> implements Token
  • Enum Constant Details

    • $START

      public static final Tokens $START
      Cursor is at a new file.
    • $COMMENT

      public static final Tokens $COMMENT
    • $STRING_LIT

      public static final Tokens $STRING_LIT
    • $WORD

      public static final Tokens $WORD
    • $NUMBER

      public static final Tokens $NUMBER
  • Constructor Details

    • Tokens

      private Tokens()
  • Method Details

    • values

      public static Tokens[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Tokens valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • write

      public void write(SourceFileWriter writer) throws IOException
      Specified by:
      write in interface Writable
      Throws:
      IOException