| Modifier and Type | Field and Description |
|---|---|
| protected BitSet | _elements
Bitset to implement the actual set. |
| public static final terminal_set | EMPTY
Constant for the empty set. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | terminal_set(terminal_set
the set we are cloning from. other)Constructor for cloning from another set. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | Returns: true if this changes the set.the set being added. other)Add (union) in a complete set. |
| public boolean | |
| public boolean | contains(int
the index of the terminal in question. indx)Given its index determine if the set contains a particular terminal. |
| public boolean | |
| public boolean | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public boolean | |
| public boolean | is_subset_of(terminal_set
the set we are testing against. other)Determine if this set is an (improper) subset of another. |
| public boolean | is_superset_of(terminal_set
the set we are testing against. other)Determine if this set is an (improper) superset of another. |
| protected void | |
| public void | |
| public String |
| _elements | back to summary |
|---|---|
| protected BitSet _elements Bitset to implement the actual set. | |
| EMPTY | back to summary |
|---|---|
| public static final terminal_set EMPTY Constant for the empty set. | |
| terminal_set | back to summary |
|---|---|
| public terminal_set() Constructor for an empty set. | |
| terminal_set | back to summary |
|---|---|
| public terminal_set(terminal_set other) throws internal_error Constructor for cloning from another set.
| |
| add | back to summary |
|---|---|
| public boolean add(terminal sym) throws internal_error Add a single terminal to the set.
| |
| add | back to summary |
|---|---|
| public boolean add(terminal_set other) throws internal_error Add (union) in a complete set.
| |
| contains | back to summary |
|---|---|
| public boolean contains(terminal sym) throws internal_error Determine if the set contains a particular terminal.
| |
| contains | back to summary |
|---|---|
| public boolean contains(int indx) Given its index determine if the set contains a particular terminal.
| |
| empty | back to summary |
|---|---|
| public boolean empty() Determine if the set is empty. | |
| equals | back to summary |
|---|---|
| public boolean equals(terminal_set other) Equality comparison. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Generic equality comparison.
| |
| intersects | back to summary |
|---|---|
| public boolean intersects(terminal_set other) throws internal_error Determine if this set intersects another.
| |
| is_subset_of | back to summary |
|---|---|
| public boolean is_subset_of(terminal_set other) throws internal_error Determine if this set is an (improper) subset of another.
| |
| is_superset_of | back to summary |
|---|---|
| public boolean is_superset_of(terminal_set other) throws internal_error Determine if this set is an (improper) superset of another.
| |
| not_null | back to summary |
|---|---|
| protected void not_null(Object obj) throws internal_error Helper function to test for a null object and throw an exception if one is found.
| |
| remove | back to summary |
|---|---|
| public void remove(terminal sym) throws internal_error Remove a terminal if it is in the set.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Convert to string.
| |