FileDocCategorySizeDatePackage
CommonAST.javaAPI DocGlassfish v2 API1190Wed Aug 30 15:34:06 BST 2006persistence.antlr

CommonAST

public class CommonAST extends BaseAST
Common AST node implementation

Fields Summary
int
ttype
String
text
Constructors Summary
public CommonAST()

    
public CommonAST(Token tok)

        initialize(tok);
    
Methods Summary
public java.lang.StringgetText()
Get the token text for this node



            
       
        return text;
    
public intgetType()
Get the token type for this node

        return ttype;
    
public voidinitialize(int t, java.lang.String txt)

        setType(t);
        setText(txt);
    
public voidinitialize(persistence.antlr.collections.AST t)

        setText(t.getText());
        setType(t.getType());
    
public voidinitialize(persistence.antlr.Token tok)

        setText(tok.getText());
        setType(tok.getType());
    
public voidsetText(java.lang.String text_)
Set the token text for this node

        text = text_;
    
public voidsetType(int ttype_)
Set the token type for this node

        ttype = ttype_;