FileDocCategorySizeDatePackage
AST.javaAPI DocGlassfish v2 API1857Wed Aug 30 15:34:12 BST 2006persistence.antlr.collections

AST

public interface AST
Minimal AST node interface used by ANTLR AST generation and tree-walker.

Fields Summary
Constructors Summary
Methods Summary
public voidaddChild(persistence.antlr.collections.AST c)
Add a (rightmost) child to this node

public booleanequals(persistence.antlr.collections.AST t)

public booleanequalsList(persistence.antlr.collections.AST t)

public booleanequalsListPartial(persistence.antlr.collections.AST t)

public booleanequalsTree(persistence.antlr.collections.AST t)

public booleanequalsTreePartial(persistence.antlr.collections.AST t)

public persistence.antlr.collections.ASTEnumerationfindAll(persistence.antlr.collections.AST tree)

public persistence.antlr.collections.ASTEnumerationfindAllPartial(persistence.antlr.collections.AST subtree)

public intgetColumn()

since
2.7.3 Need for error handling

public persistence.antlr.collections.ASTgetFirstChild()
Get the first child of this node; null if no children

public intgetLine()

since
2.7.3 Need for error handling

public persistence.antlr.collections.ASTgetNextSibling()
Get the next sibling in line after this one

public intgetNumberOfChildren()
Get number of children of this node; if leaf, returns 0

public java.lang.StringgetText()
Get the token text for this node

public intgetType()
Get the token type for this node

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

public voidinitialize(persistence.antlr.collections.AST t)

public voidinitialize(persistence.antlr.Token t)

public voidsetFirstChild(persistence.antlr.collections.AST c)
Set the first child of a node.

public voidsetNextSibling(persistence.antlr.collections.AST n)
Set the next sibling after this one.

public voidsetText(java.lang.String text)
Set the token text for this node

public voidsetType(int ttype)
Set the token type for this node

public java.lang.StringtoString()

public java.lang.StringtoStringList()

public java.lang.StringtoStringTree()