persistence.antlr
Class ASTIterator
java.lang.Object
persistence.antlr.ASTIterator
public class ASTIterator
- extends java.lang.Object
Field Summary |
protected persistence.antlr.collections.AST |
cursor
|
protected persistence.antlr.collections.AST |
original
|
Constructor Summary |
ASTIterator(persistence.antlr.collections.AST t)
|
Method Summary |
boolean |
isSubtree(persistence.antlr.collections.AST t,
persistence.antlr.collections.AST sub)
Is 'sub' a subtree of 't' beginning at the root? |
persistence.antlr.collections.AST |
next(persistence.antlr.collections.AST template)
Find the next subtree with structure and token types equal to
those of 'template'. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cursor
protected persistence.antlr.collections.AST cursor
original
protected persistence.antlr.collections.AST original
ASTIterator
public ASTIterator(persistence.antlr.collections.AST t)
isSubtree
public boolean isSubtree(persistence.antlr.collections.AST t,
persistence.antlr.collections.AST sub)
- Is 'sub' a subtree of 't' beginning at the root?
next
public persistence.antlr.collections.AST next(persistence.antlr.collections.AST template)
- Find the next subtree with structure and token types equal to
those of 'template'.