edu.rice.cs.drjava.model.definitions.reducedmodel
Class TokenList

java.lang.Object
  extended by edu.rice.cs.drjava.model.definitions.reducedmodel.TokenList
All Implemented Interfaces:
ReducedModelStates

public class TokenList
extends Object
implements ReducedModelStates

A list of reduced model tokens. Uses ModelList as its base.

Version:
$Id: TokenList.java 4691 2008-12-02 23:33:27Z dlsmith $

Nested Class Summary
 class TokenList.Iterator
           
 
Field Summary
 
Fields inherited from interface edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelStates
FREE, INSIDE_BLOCK_COMMENT, INSIDE_DOUBLE_QUOTE, INSIDE_LINE_COMMENT, INSIDE_SINGLE_QUOTE, STUTTER
 
Constructor Summary
TokenList()
           
 
Method Summary
 TokenList.Iterator getIterator()
          Gets a TokenList.Iterator for this list.
 void insertFront(T item)
           
 boolean isEmpty()
          Returns true if the list is empty.
 int length()
           
 int listenerCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenList

public TokenList()
Method Detail

getIterator

public TokenList.Iterator getIterator()
Gets a TokenList.Iterator for this list. Overrides the weaker method in ModelList.Iterator.


insertFront

public void insertFront(T item)

listenerCount

public int listenerCount()

isEmpty

public boolean isEmpty()
Returns true if the list is empty.


length

public int length()