public class StackState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ConstPool |
constPool |
private java.util.List<StackEntry> |
contents
The contents of the stack
|
Modifier | Constructor and Description |
---|---|
|
StackState(ConstPool constPool) |
private |
StackState(java.util.List<StackEntry> contents,
ConstPool constPool) |
|
StackState(java.lang.String exceptionType,
ConstPool constPool) |
Modifier and Type | Method and Description |
---|---|
StackState |
aconstNull() |
StackState |
constructorCall(int initializedValueStackPosition,
StackEntry entry) |
StackState |
dup() |
StackState |
dup2() |
StackState |
dup2X1() |
StackState |
dup2X2() |
StackState |
dupX1() |
StackState |
dupX2() |
java.util.List<StackEntry> |
getContents() |
boolean |
isOnTop(java.lang.String descriptor)
checks that the appropriate object type is on top of the stack
|
private StackState |
newStack(StackEntry... pushValues) |
StackState |
pop(int no)
pop a non-wide type from the top of the stack
|
StackState |
push(StackEntry entry)
push a type on to the top of the stack
|
StackState |
push(java.lang.String type)
push a type on to the top of the stack
|
int |
size() |
StackState |
swap() |
StackEntry |
top_1() |
StackEntry |
top_2() |
StackEntry |
top_3() |
StackEntry |
top() |
java.lang.String |
toString() |
private final java.util.List<StackEntry> contents
This list may be shared between frames, so it must never be modified
The very first element represents the bottom of the stack, with the last element representing the top. Wide elements are
stored as Wide, Top, with the StackEntryType.TOP
on the top of the stack
private final ConstPool constPool
public StackState(ConstPool constPool)
public StackState(java.lang.String exceptionType, ConstPool constPool)
private StackState(java.util.List<StackEntry> contents, ConstPool constPool)
public boolean isOnTop(java.lang.String descriptor)
public int size()
public StackState push(java.lang.String type)
public StackState push(StackEntry entry)
public StackState aconstNull()
public StackState pop(int no)
public StackState dup()
public StackState dupX1()
public StackState dupX2()
public StackState dup2()
public StackState dup2X1()
public StackState dup2X2()
private StackState newStack(StackEntry... pushValues)
public StackEntry top()
public StackEntry top_1()
public StackEntry top_2()
public StackEntry top_3()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<StackEntry> getContents()
public StackState constructorCall(int initializedValueStackPosition, StackEntry entry)
public StackState swap()