public class StackEntry
extends java.lang.Object
This is written out as part of the StackMap attribute
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
descriptor |
private int |
descriptorIndex
if this is OBJECT then this holds the const pool index
|
private int |
newInstructionLocation
if this is an unititialized bytecode then this holds the absolute position of the new instruction that created it
|
private StackEntryType |
type |
Constructor and Description |
---|
StackEntry(StackEntryType type,
java.lang.String descriptor) |
StackEntry(StackEntryType type,
java.lang.String descriptor,
ConstPool pool) |
StackEntry(StackEntryType type,
java.lang.String descriptor,
int newInstructionLocation) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescriptor() |
int |
getNewInstructionLocation() |
StackEntryType |
getType() |
boolean |
isWide() |
static StackEntry |
of(java.lang.String descriptor,
ConstPool pool) |
java.lang.String |
toString() |
void |
write(java.io.DataOutputStream dstream)
writes the entry to the stream
|
private final StackEntryType type
private final java.lang.String descriptor
private final int descriptorIndex
private final int newInstructionLocation
public StackEntry(StackEntryType type, java.lang.String descriptor)
public StackEntry(StackEntryType type, java.lang.String descriptor, ConstPool pool)
public StackEntry(StackEntryType type, java.lang.String descriptor, int newInstructionLocation)
public java.lang.String getDescriptor()
public int getNewInstructionLocation()
public StackEntryType getType()
public java.lang.String toString()
toString
in class java.lang.Object
public static StackEntry of(java.lang.String descriptor, ConstPool pool)
public boolean isWide()
public void write(java.io.DataOutputStream dstream) throws java.io.IOException
java.io.IOException