📄 astenumerator.java
字号:
package antlr.collections.impl;/* ANTLR Translator Generator * Project led by Terence Parr at http://www.cs.usfca.edu * Software rights: http://www.antlr.org/license.html * * $Id: ASTEnumerator.java,v 1.2 2005/12/24 21:50:50 robilad Exp $ */import antlr.collections.impl.Vector;import antlr.collections.ASTEnumeration;import antlr.collections.AST;import java.util.NoSuchElementException;public class ASTEnumerator implements antlr.collections.ASTEnumeration { /** The list of root nodes for subtrees that match */ VectorEnumerator nodes; int i = 0; public ASTEnumerator(Vector v) { nodes = new VectorEnumerator(v); } public boolean hasMoreNodes() { synchronized (nodes) { return i <= nodes.vector.lastElement; } } public antlr.collections.AST nextNode() { synchronized (nodes) { if (i <= nodes.vector.lastElement) { return (AST)nodes.vector.data[i++]; } throw new NoSuchElementException("ASTEnumerator"); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -