Package antlr

Class ASTIterator


  • public class ASTIterator
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected AST cursor  
      protected AST original  
    • Constructor Summary

      Constructors 
      Constructor Description
      ASTIterator​(AST t)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isSubtree​(AST t, AST sub)
      Is 'sub' a subtree of 't' beginning at the root?
      AST next​(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
    • Field Detail

      • cursor

        protected AST cursor
      • original

        protected AST original
    • Constructor Detail

      • ASTIterator

        public ASTIterator​(AST t)
    • Method Detail

      • isSubtree

        public boolean isSubtree​(AST t,
                                 AST sub)
        Is 'sub' a subtree of 't' beginning at the root?
      • next

        public AST next​(AST template)
        Find the next subtree with structure and token types equal to those of 'template'.