|
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
This class implements a .Stack
| Field Summary | |
(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.Stack(int capacity)
Constructs a Stack with an initial capacity. |
| Method Summary | |
(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 |
Object[] get
The objects on this Stack.
int size
The number of objects on this Stack.
| Constructor Detail |
Lexicon.Stack(int capacity)
Constructs a Stack with an initial capacity.
capacity - the initial capacity.| Method Detail |
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 | ||||||||