Public Member Functions | |
ASTIterator (AST t) | |
boolean | isSubtree (AST t, AST sub) |
AST | next (AST template) |
Protected Attributes | |
AST | cursor = null |
AST | original = null |
antlr.ASTIterator.ASTIterator | ( | AST | t | ) |
References antlr.ASTIterator.cursor, and antlr.ASTIterator.original.
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().
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().
AST antlr.ASTIterator.cursor = null [protected] |
Referenced by antlr.ASTIterator.ASTIterator(), and antlr.ASTIterator.next().
AST antlr.ASTIterator.original = null [protected] |
Referenced by antlr.ASTIterator.ASTIterator().