Method Summary |
|
public boolean | add(terminal sym) Add a single terminal to the set. |
public boolean | add(terminal_set other) Add (union) in a complete set. |
public boolean | contains(terminal sym) Determine if the set contains a particular terminal. |
public boolean | contains(int indx) Given its index determine if the set contains a particular terminal. |
public boolean | empty() Determine if the set is empty. |
public boolean | equals(terminal_set other) Equality comparison. |
public boolean | equals(Object other) Generic equality comparison. |
public boolean | intersects(terminal_set other) Determine if this set intersects another. |
public boolean | is_subset_of(terminal_set other) Determine if this set is an (improper) subset of another. |
public boolean | is_superset_of(terminal_set other) Determine if this set is an (improper) superset of another. |
protected void | not_null(Object obj) Helper function to test for a null object and throw an exception if
one is found. |
public void | remove(terminal sym) Remove a terminal if it is in the set. |
public String | toString() Convert to string. |