| |
|
| java.lang.Object antlr.collections.impl.LLEnumeration
LLEnumeration | final class LLEnumeration implements Enumeration(Code) | | An enumeration of a LList. Maintains a cursor through the list.
bad things would happen if the list changed via another thread
while we were walking this list.
|
Method Summary | |
public boolean | hasMoreElements() Return true/false depending on whether there are more
elements to enumerate. | public Object | nextElement() Get the next element in the enumeration. |
LLEnumeration | public LLEnumeration(LList l)(Code) | | Create an enumeration attached to a LList
|
hasMoreElements | public boolean hasMoreElements()(Code) | | Return true/false depending on whether there are more
elements to enumerate.
|
nextElement | public Object nextElement()(Code) | | Get the next element in the enumeration. Destructive in that
the returned element is removed from the enumeration. This
does not affect the list itself.
the next object in the enumeration. |
|
|
|