FileDocCategorySizeDatePackage
Token.javaAPI DocGlassfish v2 API1512Wed Aug 30 15:34:10 BST 2006persistence.antlr

Token

public class Token extends Object implements Cloneable
A token is minimally a token type. Subclasses can add the text matched for the token and line info.

Fields Summary
public static final int
MIN_USER_TYPE
public static final int
NULL_TREE_LOOKAHEAD
public static final int
INVALID_TYPE
public static final int
EOF_TYPE
public static final int
SKIP
int
type
public static Token
badToken
Constructors Summary
public Token()


      
    
public Token(int t)

        type = t;
    
public Token(int t, String txt)

        type = t;
        setText(txt);
    
Methods Summary
public intgetColumn()

        return 0;
    
public java.lang.StringgetFilename()

		return null;
	
public intgetLine()

        return 0;
    
public java.lang.StringgetText()

        return "<no text>";
    
public intgetType()

        return type;
    
public voidsetColumn(int c)

    
public voidsetFilename(java.lang.String name)

	
public voidsetLine(int l)

    
public voidsetText(java.lang.String t)

    
public voidsetType(int t)

        type = t;
    
public java.lang.StringtoString()

        return "[\"" + getText() + "\",<" + type + ">]";