java_cup.symbol
| Modifier and Type | Field and Description |
|---|---|
| protected Hashtable | _all
A hash table to hold the set. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | Returns: true if this changes the set.the set we are adding in. other)Add (union) in a complete set. |
| public Enumeration | |
| public boolean | |
| public boolean | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public int | |
| public boolean | is_subset_of(symbol_set
the set we are testing against. other)Determine if this set is an (improper) subset of another. |
| public boolean | is_superset_of(symbol_set
the set we are are testing against. other)Determine if this set is an (improper) superset of another. |
| protected void | |
| public void | |
| public void | |
| public int | |
| public String |
| _all | back to summary |
|---|---|
| protected Hashtable<K, V> _all A hash table to hold the set. Symbols are keyed using their name string. | |
| symbol_set | back to summary |
|---|---|
| public symbol_set() Constructor for an empty set. | |
| symbol_set | back to summary |
|---|---|
| public symbol_set(symbol_set other) throws internal_error Constructor for cloning from another set.
| |
| add | back to summary |
|---|---|
| public boolean add(symbol sym) throws internal_error Add a single symbol to the set.
| |
| add | back to summary |
|---|---|
| public boolean add(symbol_set other) throws internal_error Add (union) in a complete set.
| |
| all | back to summary |
|---|---|
| public Enumeration Access to all elements of the set. | |
| contains | back to summary |
|---|---|
| public boolean contains(symbol sym) Determine if the set contains a particular symbol.
| |
| equals | back to summary |
|---|---|
| public boolean equals(symbol_set other) Equality comparison. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Generic equality comparison.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Compute a hash code.
| |
| is_subset_of | back to summary |
|---|---|
| public boolean is_subset_of(symbol_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(symbol_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(symbol sym) throws internal_error Remove a single symbol if it is in the set.
| |
| remove | back to summary |
|---|---|
| public void remove(symbol_set other) throws internal_error Remove (set subtract) a complete set.
| |
| size | back to summary |
|---|---|
| public int size() size of the set | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Convert to a string.
| |