Package org.jboss.classfilewriter.code
Class StackState
java.lang.Object
org.jboss.classfilewriter.code.StackState
In immutable stack state, which may be shared between frames
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConstPoolprivate final List<StackEntry> The contents of the stack -
Constructor Summary
ConstructorsModifierConstructorDescriptionStackState(String exceptionType, ConstPool constPool) privateStackState(List<StackEntry> contents, ConstPool constPool) StackState(ConstPool constPool) -
Method Summary
Modifier and TypeMethodDescriptionconstructorCall(int initializedValueStackPosition, StackEntry entry) dup()dup2()dup2X1()dup2X2()dupX1()dupX2()booleanchecks that the appropriate object type is on top of the stackprivate StackStatenewStack(StackEntry... pushValues) pop(int no) pop a non-wide type from the top of the stackpush a type on to the top of the stackpush(StackEntry entry) push a type on to the top of the stackintsize()swap()top()top_1()top_2()top_3()toString()updateMerged(int pos, StackEntry frame)
-
Field Details
-
contents
The contents of the stackThis 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.TOPon the top of the stack -
constPool
-
-
Constructor Details
-
StackState
-
StackState
-
StackState
-
-
Method Details
-
isOnTop
checks that the appropriate object type is on top of the stack -
size
public int size() -
push
push a type on to the top of the stack -
push
push a type on to the top of the stack -
aconstNull
-
pop
pop a non-wide type from the top of the stack -
dup
-
dupX1
-
dupX2
-
dup2
-
dup2X1
-
dup2X2
-
newStack
-
top
-
top_1
-
top_2
-
top_3
-
toString
-
getContents
-
constructorCall
-
updateMerged
-
swap
-