类 ASTIterator

  • 所有已实现的接口:
    Iterator

    public class ASTIterator
    extends Object
    implements Iterator
    Depth first iteration of an ANTLR AST.
    作者:
    josh
    • 构造器详细资料

      • ASTIterator

        public ASTIterator​(antlr.collections.AST tree)
        Constructs an Iterator for depth-first iteration of an AST
        参数:
        tree - THe tree whose nodes are to be iterated
    • 方法详细资料

      • remove

        public void remove()
        指定者:
        remove 在接口中 Iterator
      • hasNext

        public boolean hasNext()
        指定者:
        hasNext 在接口中 Iterator
      • nextNode

        public antlr.collections.AST nextNode()
        Get the next node to be returned from iteration.
        返回:
        The next node.