Class Token

java.lang.Object
foundry.veil.lib.anarres.cpp.Token

public final class Token extends Object
A Preprocessor token.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Token(int type, int line, int column, String text)
     
    Token(int type, int line, int column, String text, Object value)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the column at which this token started.
    int
    Returns the line at which this token started.
    Returns the original or generated text of this token.
    static @NotNull String
    getTokenName(int type)
    Returns the descriptive name of the given token type.
    int
    Returns the semantic type of this token.
    Returns the semantic value of this token.
    Returns a description of this token, for debugging purposes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait