Inherits java::util::Enumeration.
Public Member Functions | |
| LLEnumeration (LList l) | |
| boolean | hasMoreElements () |
| Object | nextElement () |
Package Attributes | |
| LLCell | cursor |
| LList | list |
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.
| antlr.collections.impl.LLEnumeration.LLEnumeration | ( | LList | l | ) |
Create an enumeration attached to a LList
References antlr.collections.impl.LLEnumeration.cursor, antlr.collections.impl.LList.head, and antlr.collections.impl.LLEnumeration.list.
| boolean antlr.collections.impl.LLEnumeration.hasMoreElements | ( | ) |
Return true/false depending on whether there are more elements to enumerate.
References antlr.collections.impl.LLEnumeration.cursor.
Referenced by antlr.collections.impl.LLEnumeration.nextElement().
| Object antlr.collections.impl.LLEnumeration.nextElement | ( | ) |
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.
References antlr.collections.impl.LLEnumeration.cursor, antlr.collections.impl.LLCell.data, antlr.collections.impl.LLEnumeration.hasMoreElements(), and antlr.collections.impl.LLCell.next.
Referenced by antlr.collections.impl.LLEnumeration.LLEnumeration().
1.7.0