FileDocCategorySizeDatePackage
CommonToken.javaAPI DocGlassfish v2 API1054Wed Aug 30 15:34:06 BST 2006persistence.antlr

CommonToken

public class CommonToken extends Token

Fields Summary
protected int
line
protected String
text
protected int
col
Constructors Summary
public CommonToken()


      
    
public CommonToken(int t, String txt)

        type = t;
        setText(txt);
    
public CommonToken(String s)

        text = s;
    
Methods Summary
public intgetColumn()
Return token's start column

        return col;
    
public intgetLine()

        return line;
    
public java.lang.StringgetText()

        return text;
    
public voidsetColumn(int c)

        col = c;
    
public voidsetLine(int l)

        line = l;
    
public voidsetText(java.lang.String s)

        text = s;
    
public java.lang.StringtoString()

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