|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectantlr.BaseAST
net.obsearch.example.ted.SliceAST
public class SliceAST
SliceAST This class provides extra functionality required by tree edit distance algorithms and the like
| Field Summary | |
|---|---|
protected int |
decendants
|
protected java.lang.String |
text
|
| Fields inherited from class antlr.BaseAST |
|---|
down, right |
| Constructor Summary | |
|---|---|
SliceAST()
|
|
SliceAST(int t,
java.lang.String txt)
|
|
SliceAST(SliceAST t)
|
|
SliceAST(antlr.Token tok)
|
|
| Method Summary | |
|---|---|
boolean |
containsNode(int i)
|
java.util.List<SliceAST> |
depthFirst()
|
protected void |
depthFirstAux(java.util.LinkedList<SliceAST> res)
|
protected int |
detailedTreeAux(antlr.collections.AST t)
Is tree rooted at 'this' equal to 't'? The siblings of 'this' are ignored. |
int |
detailedTreeComparison(antlr.collections.AST t)
|
boolean |
equalsTree(antlr.collections.AST t)
|
SliceAST |
findFirstNodeThatMatches(java.lang.String label)
|
int |
getDescendants()
|
int |
getId()
|
SliceAST |
getLeftmostChild()
|
int |
getSize()
|
java.lang.String |
getText()
Get the token text for this node |
int |
getType()
Get the token type for this node |
void |
initialize(antlr.collections.AST t)
|
void |
initialize(int t,
java.lang.String txt)
|
void |
initialize(antlr.Token tok)
|
java.lang.String |
prettyPrint()
Print out a child-sibling tree in LISP notation |
void |
setText(java.lang.String text_)
Set the token text for this node |
void |
setType(int ttype_)
Set the token type for this node |
void |
toFuriaChanTreeAux(java.lang.StringBuilder ts)
|
java.lang.String |
toQ()
Print out a child-sibling tree in Q notation |
void |
updateContains()
|
int |
updateDecendantInformation()
|
void |
updateIdInfo()
public int updateDecendantInformation(){ assert false; return -1; } |
| Methods inherited from class antlr.BaseAST |
|---|
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int decendants
protected java.lang.String text
| Constructor Detail |
|---|
public SliceAST()
public SliceAST(int t,
java.lang.String txt)
public SliceAST(antlr.Token tok)
public SliceAST(SliceAST t)
| Method Detail |
|---|
public int updateDecendantInformation()
public int getDescendants()
public int getSize()
public SliceAST findFirstNodeThatMatches(java.lang.String label)
public java.lang.String getText()
getText in interface antlr.collections.ASTgetText in class antlr.BaseASTpublic int getType()
getType in interface antlr.collections.ASTgetType in class antlr.BaseAST
public void initialize(int t,
java.lang.String txt)
initialize in interface antlr.collections.ASTinitialize in class antlr.BaseASTpublic void initialize(antlr.collections.AST t)
initialize in interface antlr.collections.ASTinitialize in class antlr.BaseASTpublic void initialize(antlr.Token tok)
initialize in interface antlr.collections.ASTinitialize in class antlr.BaseASTpublic void setText(java.lang.String text_)
setText in interface antlr.collections.ASTsetText in class antlr.BaseASTpublic void setType(int ttype_)
setType in interface antlr.collections.ASTsetType in class antlr.BaseASTpublic SliceAST getLeftmostChild()
public java.lang.String prettyPrint()
public java.lang.String toQ()
public boolean equalsTree(antlr.collections.AST t)
equalsTree in interface antlr.collections.ASTequalsTree in class antlr.BaseASTpublic int detailedTreeComparison(antlr.collections.AST t)
protected int detailedTreeAux(antlr.collections.AST t)
public java.util.List<SliceAST> depthFirst()
protected void depthFirstAux(java.util.LinkedList<SliceAST> res)
public void updateIdInfo()
public void updateContains()
public int getId()
public boolean containsNode(int i)
public final void toFuriaChanTreeAux(java.lang.StringBuilder ts)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||