|
Generic Interpreter 1.2 Private API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgi.Lexicon.Stack
gi.Lexicon.Set
This class implements a .Set
| Field Summary | |
private boolean |
excludeNull
The null exclusion indicator. |
(package private) Object[] |
get
The objects on this Stack. |
(package private) int |
size
The number of objects on this Stack. |
| Constructor Summary | |
(package private) |
Lexicon.Set(int capacity)
Constructs a Set with an initial capacity. |
| Method Summary | |
(package private) boolean |
add(Lexicon.Set S)
Adds a Set of objects to this Set. |
(package private) boolean |
add(Lexicon.Set S,
int start)
Adds a Set of objects to this Set. |
(package private) boolean |
add(Object object)
Adds an object to this Set. |
(package private) boolean |
contains(Object object)
Indicates whether an object occurs in this Set. |
(package private) Object |
pop()
Pops and returns the top object of this Stack. |
(package private) boolean |
push(Object object)
Pushes an object onto this Stack. |
(package private) Object |
top()
Returns the top object of this Stack. |
String |
toString()
Returns the string representation of this Stack. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private final boolean excludeNull
The null exclusion indicator. If true, add methods will not add null to this Set.
Object[] get
The objects on this Stack.
int size
The number of objects on this Stack.
| Constructor Detail |
Lexicon.Set(int capacity)
Constructs a Set with an initial capacity.
capacity - the initial capacity. The magnitude of capacity is the initial capacity. The null exclusion indicator is initialized to true if capacity is negative.| Method Detail |
boolean add(Lexicon.Set S)
Adds a Set of objects to this Set. An object is not added if it occurs in this Set or it is null and the null exclusion indicator is true. The capacity is expanded if necessary.
S - the Set to add to this Set.
true if this Set is changed; false otherwise.
boolean add(Lexicon.Set S,
int start)
Adds a Set of objects to this Set. An object is not added if it occurs in this Set or it is null and the null exclusion indicator is true. The capacity is expanded if necessary.
S - the Set to add to this Set.start - the index in S beyond which objects are added.
true if this Set is changed; false otherwise.boolean add(Object object)
Adds an object to this Set. The object is not added if it occurs in this Set or it is null and the null exclusion indicator is true. The capacity is expanded if necessary.
object - the object to add to this Set.
true if this Set is changed; false otherwise.boolean contains(Object object)
Indicates whether an object occurs in this Set.
object - the object whose membership if requested.
true if o occurs in this Set; false otherwise.Object pop()
Pops and returns the top object of this Stack.
Stack.boolean push(Object object)
Pushes an object onto this Stack. The capacity is expanded by 50% if necessary.
object - the object to push onto this Stack.
true indicates this Stack is changed.Object top()
Returns the top object of this Stack.
Stack.public String toString()
Returns the string representation of this Stack.
Stack.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||