|
||||||||||
| 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
net.obsearch.example.ted.SliceASTIds
net.obsearch.example.ted.SliceASTForStandardTed
public class SliceASTForStandardTed
This class provides extra functionality required by tree edit distance algorithms and the like
| Field Summary |
|---|
| Fields inherited from class net.obsearch.example.ted.SliceAST |
|---|
decendants, text |
| Fields inherited from class antlr.BaseAST |
|---|
down, right |
| Constructor Summary | |
|---|---|
SliceASTForStandardTed()
|
|
SliceASTForStandardTed(int t,
java.lang.String txt)
|
|
SliceASTForStandardTed(SliceASTForStandardTed t)
|
|
SliceASTForStandardTed(antlr.Token tok)
|
|
| Method Summary | |
|---|---|
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)
|
SliceASTForStandardTed |
findFirstNodeThatMatches(java.lang.String label)
|
int |
getDescendants()
|
SliceASTForStandardTed |
getHeavy()
|
SliceASTForStandardTed |
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 |
java.util.LinkedList<SliceASTForStandardTed> |
topLight()
toplight never |
protected void |
topLightAux(java.util.LinkedList<SliceASTForStandardTed> m)
|
int |
updateDecendantInformation()
|
void |
updateHeavyPathInformation()
|
| Methods inherited from class net.obsearch.example.ted.SliceASTIds |
|---|
containedNodes, containsNode, getId, updateContains, updateContainsAux, updateIdInfo, updateIdInfoAux |
| Methods inherited from class net.obsearch.example.ted.SliceAST |
|---|
depthFirst, depthFirstAux, toFuriaChanTreeAux, toQ |
| 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 |
| Constructor Detail |
|---|
public SliceASTForStandardTed()
public SliceASTForStandardTed(int t,
java.lang.String txt)
public SliceASTForStandardTed(antlr.Token tok)
public SliceASTForStandardTed(SliceASTForStandardTed t)
| Method Detail |
|---|
public int updateDecendantInformation()
updateDecendantInformation in class SliceASTpublic int getDescendants()
getDescendants in class SliceASTpublic int getSize()
getSize in class SliceASTpublic java.util.LinkedList<SliceASTForStandardTed> topLight()
protected void topLightAux(java.util.LinkedList<SliceASTForStandardTed> m)
public SliceASTForStandardTed getHeavy()
public void updateHeavyPathInformation()
public SliceASTForStandardTed findFirstNodeThatMatches(java.lang.String label)
findFirstNodeThatMatches in class SliceASTpublic java.lang.String getText()
getText in interface antlr.collections.ASTgetText in class SliceASTpublic int getType()
getType in interface antlr.collections.ASTgetType in class SliceAST
public void initialize(int t,
java.lang.String txt)
initialize in interface antlr.collections.ASTinitialize in class SliceASTpublic void initialize(antlr.collections.AST t)
initialize in interface antlr.collections.ASTinitialize in class SliceASTpublic void initialize(antlr.Token tok)
initialize in interface antlr.collections.ASTinitialize in class SliceASTpublic void setText(java.lang.String text_)
setText in interface antlr.collections.ASTsetText in class SliceASTpublic void setType(int ttype_)
setType in interface antlr.collections.ASTsetType in class SliceASTpublic SliceASTForStandardTed getLeftmostChild()
getLeftmostChild in class SliceASTpublic java.lang.String prettyPrint()
prettyPrint in class SliceASTpublic boolean equalsTree(antlr.collections.AST t)
equalsTree in interface antlr.collections.ASTequalsTree in class SliceASTpublic int detailedTreeComparison(antlr.collections.AST t)
detailedTreeComparison in class SliceASTprotected int detailedTreeAux(antlr.collections.AST t)
detailedTreeAux in class SliceAST
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||