JavaTokenTypes.java


//  JavaTokenTypes.java

//  Interface JavaTokenTypes
//  ------------------------------------------------------------------
/**
  *     Manifest constants for identifying types of tokens.
  *
  *     @author   C. Vickery
  *     @version  1.0 - Spring, 2000
  */
  public interface JavaTokenTypes
  {
    //  Manifest Constants
    //  ================================================================

    //  Java Token Types
    //  ----------------------------------------------------------------

    /** Undefined token.                                */
    public static final int JTT_Undefined       = 0;

    /** Token type for identifiers.                     */
    public static final int JTT_Identifier      = 1;

    /** Token type for keywords.                        */
    public static final int JTT_Keyword         = 2;

    /** Token type for String literals.                 */
    public static final int JTT_String          = 3;

    /** Token type for Character literals.              */
    public static final int JTT_Character       = 4;

    /** Token type for integer number literals.         */
    public static final int JTT_FixedPoint      = 5;

    /** Token type for real number literals.            */
    public static final int JTT_FloatingPoint   = 6;

    /** Token type for the boolean true literal.        */
    public static final int JTT_True            = 7;

    /** Token type for the boolean false literal.       */
    public static final int JTT_False           = 8;

    /** Token type for the reference type null literal. */
    public static final int JTT_Null            = 9;

    /** Token type for separators.                      */
    public static final int JTT_Separator       = 10;

    /** Token type for operators.                       */
    public static final int JTT_Operator        = 11;

  }