Package org.jboss.classfilewriter.code
Class StackEntry
java.lang.Object
org.jboss.classfilewriter.code.StackEntry
represents the state of the stack or the local variable array.
This is written out as part of the StackMap attribute
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final intif this is OBJECT then this holds the const pool indexprivate final intif this is an unititialized bytecode then this holds the absolute position of the new instruction that created itprivate final StackEntryType -
Constructor Summary
ConstructorsConstructorDescriptionStackEntry(StackEntryType type, String descriptor) StackEntry(StackEntryType type, String descriptor, int newInstructionLocation) StackEntry(StackEntryType type, String descriptor, ConstPool pool) -
Method Summary
Modifier and TypeMethodDescriptionintgetType()booleanisWide()static StackEntrytoString()voidwrite(DataOutputStream dstream) writes the entry to the stream
-
Field Details
-
type
-
descriptor
-
descriptorIndex
private final int descriptorIndexif this is OBJECT then this holds the const pool index -
newInstructionLocation
private final int newInstructionLocationif this is an unititialized bytecode then this holds the absolute position of the new instruction that created it
-
-
Constructor Details
-
StackEntry
-
StackEntry
-
StackEntry
-
-
Method Details
-
getDescriptor
-
getNewInstructionLocation
public int getNewInstructionLocation() -
getType
-
toString
-
of
-
isWide
public boolean isWide() -
write
writes the entry to the stream- Throws:
IOException
-