Public Member Functions | Package Attributes

antlr.collections.impl.LLEnumeration Class Reference

Inherits java::util::Enumeration.

List of all members.

Public Member Functions

 LLEnumeration (LList l)
boolean hasMoreElements ()
Object nextElement ()

Package Attributes

LLCell cursor
LList list

Detailed Description

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.


Constructor & Destructor Documentation

antlr.collections.impl.LLEnumeration.LLEnumeration ( LList  l  ) 

Member Function Documentation

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.

Returns:
the next object in the enumeration.

References antlr.collections.impl.LLEnumeration.cursor, antlr.collections.impl.LLCell.data, antlr.collections.impl.LLEnumeration.hasMoreElements(), and antlr.collections.impl.LLCell.next.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties