|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--StackEntry
Field Summary | |
(package private) StackEntry |
next
the next entry on the stack, just below this one. |
(package private) java.lang.String |
signature
the type signature of this entry. |
(package private) int |
size
the size of this entry (1 or 2). |
(package private) int[] |
sourceIDs
An identifier for this value. |
Constructor Summary | |
(package private) |
StackEntry(java.lang.String signature,
int[] sourceIDs,
StackEntry next)
constructs a new stack entry. |
(package private) |
StackEntry(java.lang.String signature,
int sourceID,
StackEntry next)
constructs a new stack entry. |
Method Summary | |
(package private) StackEntry |
dupDouble()
duplicate the top size-2 stack entry (or two size-1 entries). |
(package private) StackEntry |
dupDoubleBury1()
duplicate the top size-2 stack entry (or two size-1 entries) and bury it (or them) 1 place down. |
(package private) StackEntry |
dupDoubleBury2()
duplicate the top size-2 stack entry (or two size-1 entries) and bury it (or them) 2 places down. |
(package private) StackEntry |
dupSingle()
duplicate the top size-1 stack entry. |
(package private) StackEntry |
dupSingleBury1()
duplicate the top size-1 stack entry and bury it 1 place down. |
(package private) StackEntry |
dupSingleBury2()
duplicate the top size-1 stack entry and bury it 2 places down (or 1 size-2-place down). |
(package private) static StackEntry |
merge(StackEntry first,
StackEntry other)
merge 2 stacks producing a common description. |
(package private) StackEntry |
popDouble()
pop a size-2 value from stack. |
(package private) StackEntry |
popNWords(int n)
pops a given number of size-1 words from the stack. |
(package private) StackEntry |
popSingle()
pop a size-1 value from stack. |
(package private) StackEntry |
push(java.lang.String signature,
int sourceID)
push one value (size 1 or 2) onto stack. |
(package private) StackEntry |
push(java.lang.String signature,
int[] sourceIDs)
push one value (size 1 or 2) onto stack. |
(package private) StackEntry |
swapSingle()
swap the 2 top stack entries (size-1). |
java.lang.String |
toString()
readable description of the whole stack, not just the top entry. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.lang.String signature
int size
int[] sourceIDs
StackEntry next
Constructor Detail |
StackEntry(java.lang.String signature, int sourceID, StackEntry next)
StackEntry(java.lang.String signature, int[] sourceIDs, StackEntry next)
Method Detail |
StackEntry push(java.lang.String signature, int sourceID)
StackEntry push(java.lang.String signature, int[] sourceIDs)
StackEntry popSingle()
StackEntry popDouble()
StackEntry popNWords(int n)
StackEntry swapSingle()
StackEntry dupSingle()
StackEntry dupSingleBury1()
StackEntry dupSingleBury2()
StackEntry dupDouble()
StackEntry dupDoubleBury1()
StackEntry dupDoubleBury2()
static StackEntry merge(StackEntry first, StackEntry other)
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |