Class SingleDefinition

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<java.lang.String>
              extended by SingleDefinition
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.lang.String>, java.util.Collection<java.lang.String>, java.util.List<java.lang.String>, java.util.RandomAccess

public class SingleDefinition
extends java.util.ArrayList<java.lang.String>

An SingleDefinition is one of the alternatives in a Definitions object. It consists of one definition (a sequence of terminals and/or nonterminals) with no '|' symbols.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SingleDefinition()
          Constructs an empty SingleDefiniton object; terms can be added to it via the inherited ArrayList.add(String) method.
 
Method Summary
 java.lang.String toString()
          Returns a String consisting of the elements of this ArrayList, separated by spaces.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

SingleDefinition

SingleDefinition()
Constructs an empty SingleDefiniton object; terms can be added to it via the inherited ArrayList.add(String) method.

Method Detail

toString

public java.lang.String toString()
Returns a String consisting of the elements of this ArrayList, separated by spaces.

Overrides:
toString in class java.util.AbstractCollection<java.lang.String>
See Also:
AbstractCollection.toString()