Public Member Functions | Protected Attributes

antlr.ASTIterator Class Reference

List of all members.

Public Member Functions

 ASTIterator (AST t)
boolean isSubtree (AST t, AST sub)
AST next (AST template)

Protected Attributes

AST cursor = null
AST original = null

Constructor & Destructor Documentation

antlr.ASTIterator.ASTIterator ( AST  t  ) 

Member Function Documentation

boolean antlr.ASTIterator.isSubtree ( AST  t,
AST  sub 
)

Is 'sub' a subtree of 't' beginning at the root?

References antlr.collections.AST.getFirstChild(), antlr.collections.AST.getNextSibling(), and antlr.collections.AST.getType().

Referenced by antlr.ASTIterator.next().

AST antlr.ASTIterator.next ( AST  template  ) 

Find the next subtree with structure and token types equal to those of 'template'.

References antlr.ASTIterator.cursor, antlr.collections.AST.getFirstChild(), antlr.collections.AST.getNextSibling(), antlr.collections.AST.getType(), and antlr.ASTIterator.isSubtree().


Member Data Documentation

AST antlr.ASTIterator.cursor = null [protected]
AST antlr.ASTIterator.original = null [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties