|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sri.oaa2.icl.IclAST
| Field Summary | |
protected IclAST |
astParent
|
protected int |
astSibNum
|
protected java.lang.String |
astText
|
protected int |
astType
|
protected java.util.ArrayList |
children
|
protected IclAST |
oldestSib
|
protected java.util.ArrayList |
siblings
|
protected IclTerm |
term
|
| Constructor Summary | |
IclAST()
|
|
| Method Summary | |
void |
addChild(antlr_oaa.collections.AST child)
Add child to this node. |
boolean |
equals(antlr_oaa.collections.AST t)
Is node t equal to this in terms of token type and text? |
boolean |
equalsList(antlr_oaa.collections.AST t)
Is t an exact structural and equals() match of this tree. |
boolean |
equalsListPartial(antlr_oaa.collections.AST sub)
Checks if 'sub' a subtree of this list. |
boolean |
equalsTree(antlr_oaa.collections.AST t)
Checks if tree rooted at 'this' equal to 't'. |
boolean |
equalsTreePartial(antlr_oaa.collections.AST sub)
Checks if 't' a subtree of the tree rooted at 'this'. |
antlr_oaa.collections.ASTEnumeration |
findAll(antlr_oaa.collections.AST tree)
Deprecated. unimplemented |
antlr_oaa.collections.ASTEnumeration |
findAllPartial(antlr_oaa.collections.AST subtree)
Deprecated. unimplemented |
antlr_oaa.collections.AST |
getFirstChild()
Get the first child of this node; null if no children . |
IclTerm |
getIclTerm()
|
antlr_oaa.collections.AST |
getNextSibling()
Get the next sibling in line after this one. |
protected IclAST |
getOldestSib()
Get oldest sibling for AST, or null if unknown |
protected IclAST |
getParent()
Get parent for AST or null if unknown |
protected java.util.ArrayList |
getSiblings()
Get the list of siblings. |
protected int |
getSibNum()
Get the sibling number. |
java.lang.String |
getText()
Get the token text for this node. |
int |
getType()
|
void |
initialize(antlr_oaa.collections.AST t)
Initialize from another AST. |
void |
initialize(int t,
java.lang.String txt)
Initialize from an integer type and text. |
void |
initialize(antlr_oaa.Token t)
Initialize from a token. |
void |
setFirstChild(antlr_oaa.collections.AST child)
Set the first child of a node. |
void |
setNextSibling(antlr_oaa.collections.AST n)
Set the next sibling after this one. |
protected void |
setOldestSib(IclAST t)
Set the oldest sibling |
protected void |
setParent(IclAST t)
Set parent for AST |
protected void |
setSiblings(java.util.ArrayList l)
For the oldest sibling, this is used to keep track of the other siblings. |
protected void |
setSibNum(int s)
Set sibling number. |
void |
setText(java.lang.String text)
Set the token text for this node. |
void |
setType(int t)
|
java.lang.String |
toString()
|
java.lang.String |
toStringList()
Print out a child-sibling tree in LISP notation. |
java.lang.String |
toStringTree()
Print out the tree. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected IclTerm term
protected java.util.ArrayList children
protected java.util.ArrayList siblings
protected int astSibNum
protected IclAST astParent
protected IclAST oldestSib
protected java.lang.String astText
protected int astType
| Constructor Detail |
public IclAST()
| Method Detail |
public IclTerm getIclTerm()
public int getType()
getType in interface antlr_oaa.collections.ASTpublic void setType(int t)
setType in interface antlr_oaa.collections.ASTpublic final void setFirstChild(antlr_oaa.collections.AST child)
setFirstChild in interface antlr_oaa.collections.ASTpublic final void setNextSibling(antlr_oaa.collections.AST n)
setNextSibling in interface antlr_oaa.collections.ASTpublic final void addChild(antlr_oaa.collections.AST child)
addChild in interface antlr_oaa.collections.ASTprotected final void setParent(IclAST t)
protected final IclAST getParent()
protected final IclAST getOldestSib()
protected final void setOldestSib(IclAST t)
protected final void setSiblings(java.util.ArrayList l)
protected final java.util.ArrayList getSiblings()
protected final void setSibNum(int s)
protected final int getSibNum()
public boolean equals(antlr_oaa.collections.AST t)
equals in interface antlr_oaa.collections.ASTpublic boolean equalsList(antlr_oaa.collections.AST t)
equalsList in interface antlr_oaa.collections.ASTpublic boolean equalsListPartial(antlr_oaa.collections.AST sub)
equalsListPartial in interface antlr_oaa.collections.ASTpublic boolean equalsTree(antlr_oaa.collections.AST t)
equalsTree in interface antlr_oaa.collections.ASTpublic boolean equalsTreePartial(antlr_oaa.collections.AST sub)
equalsTreePartial in interface antlr_oaa.collections.ASTpublic antlr_oaa.collections.ASTEnumeration findAll(antlr_oaa.collections.AST tree)
findAll in interface antlr_oaa.collections.ASTpublic antlr_oaa.collections.ASTEnumeration findAllPartial(antlr_oaa.collections.AST subtree)
findAllPartial in interface antlr_oaa.collections.ASTpublic final antlr_oaa.collections.AST getFirstChild()
getFirstChild in interface antlr_oaa.collections.ASTpublic final antlr_oaa.collections.AST getNextSibling()
getNextSibling in interface antlr_oaa.collections.ASTpublic java.lang.String getText()
getText in interface antlr_oaa.collections.AST
public final void initialize(int t,
java.lang.String txt)
initialize in interface antlr_oaa.collections.ASTpublic final void initialize(antlr_oaa.collections.AST t)
initialize in interface antlr_oaa.collections.ASTpublic final void initialize(antlr_oaa.Token t)
initialize in interface antlr_oaa.collections.ASTpublic void setText(java.lang.String text)
setText in interface antlr_oaa.collections.ASTpublic java.lang.String toString()
toString in interface antlr_oaa.collections.ASTtoString in class java.lang.Objectpublic final java.lang.String toStringList()
toStringList in interface antlr_oaa.collections.ASTpublic final java.lang.String toStringTree()
toStringTree in interface antlr_oaa.collections.AST
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||