antlr

Class CommonAST

public class CommonAST extends BaseAST

Common AST node implementation
Field Summary
Stringtext
intttype
Constructor Summary
CommonAST()
CommonAST(Token tok)
Method Summary
StringgetText()
Get the token text for this node
intgetType()
Get the token type for this node
voidinitialize(int t, String txt)
voidinitialize(AST t)
voidinitialize(Token tok)
voidsetText(String text_)
Set the token text for this node
voidsetType(int ttype_)
Set the token type for this node

Field Detail

text

String text

ttype

int ttype

Constructor Detail

CommonAST

public CommonAST()

CommonAST

public CommonAST(Token tok)

Method Detail

getText

public String getText()
Get the token text for this node

getType

public int getType()
Get the token type for this node

initialize

public void initialize(int t, String txt)

initialize

public void initialize(AST t)

initialize

public void initialize(Token tok)

setText

public void setText(String text_)
Set the token text for this node

setType

public void setType(int ttype_)
Set the token type for this node