net.chayden.eliza
Class KeyList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--net.chayden.eliza.KeyList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class KeyList
extends java.util.Vector

Eliza key list. This stores all the keys.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
KeyList()
           
 
Method Summary
 void add(java.lang.String key, int rank, DecompList decomp)
          Add a new key.
 void buildKeyStack(KeyStack stack, java.lang.String s)
          Break the string s into words.
 void print(int indent)
          Print all the keys.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

KeyList

public KeyList()
Method Detail

add

public void add(java.lang.String key,
                int rank,
                DecompList decomp)
Add a new key.


print

public void print(int indent)
Print all the keys.


buildKeyStack

public void buildKeyStack(KeyStack stack,
                          java.lang.String s)
Break the string s into words. For each word, if isKey is true, then push the key into the stack.