abc.main.options
Class ArgList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList
                  extended by abc.main.options.ArgList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.Queue

public class ArgList
extends java.util.LinkedList

A list of command-line arguments.

Author:
Ondrej Lhotak
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ArgList(java.lang.String[] args)
           
 
Method Summary
 java.lang.String argTo()
          Return the argument of the current argument, or throw an exception if there isn't one.
 void push(java.lang.String arg)
          Add arg to the front of the arg list.
 void shift()
          Move to the next argument.
 java.lang.String top()
          Return the current arg.
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

ArgList

public ArgList(java.lang.String[] args)
Method Detail

top

public java.lang.String top()
Return the current arg.


argTo

public java.lang.String argTo()
Return the argument of the current argument, or throw an exception if there isn't one.


shift

public void shift()
Move to the next argument.


push

public void push(java.lang.String arg)
Add arg to the front of the arg list.