public final class StackMapEntry extends Object implements Node, Cloneable
union stack_map_frame { same_frame; same_locals_1_stack_item_frame; same_locals_1_stack_item_frame_extended; chop_frame; same_frame_extended; append_frame; full_frame; }
StackMap
,
StackMapType
Constructor and Description |
---|
StackMapEntry(int byteCodeOffset,
int numberOfLocals,
StackMapType[] typesOfLocals,
int numberOfStackItems,
StackMapType[] typesOfStackItems,
ConstantPool constantPool)
Deprecated.
Since 6.0, use
StackMapEntry(int, int, StackMapType[], StackMapType[], ConstantPool) instead |
StackMapEntry(int tag,
int byteCodeOffset,
StackMapType[] typesOfLocals,
StackMapType[] typesOfStackItems,
ConstantPool constantPool)
Create an instance
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.
|
StackMapEntry |
copy() |
void |
dump(DataOutputStream file)
Dump stack map entry
|
int |
getByteCodeOffset() |
ConstantPool |
getConstantPool() |
int |
getFrameType() |
int |
getNumberOfLocals() |
int |
getNumberOfStackItems() |
StackMapType[] |
getTypesOfLocals() |
StackMapType[] |
getTypesOfStackItems() |
void |
setByteCodeOffset(int newOffset) |
void |
setConstantPool(ConstantPool constantPool) |
void |
setFrameType(int ft) |
void |
setNumberOfLocals(int n)
Deprecated.
since 6.0
|
void |
setNumberOfStackItems(int n)
Deprecated.
since 6.0
|
void |
setTypesOfLocals(StackMapType[] types) |
void |
setTypesOfStackItems(StackMapType[] types) |
String |
toString() |
void |
updateByteCodeOffset(int delta)
Update the distance (as an offset delta) from this StackMap entry to the next.
|
@Deprecated public StackMapEntry(int byteCodeOffset, int numberOfLocals, StackMapType[] typesOfLocals, int numberOfStackItems, StackMapType[] typesOfStackItems, ConstantPool constantPool)
StackMapEntry(int, int, StackMapType[], StackMapType[], ConstantPool)
insteadbyteCodeOffset
- numberOfLocals
- NOT USEDtypesOfLocals
- array of StackMapType
s of localsnumberOfStackItems
- NOT USEDtypesOfStackItems
- array ot StackMapType
s of stack itemsconstantPool
- the constant poolpublic StackMapEntry(int tag, int byteCodeOffset, StackMapType[] typesOfLocals, StackMapType[] typesOfStackItems, ConstantPool constantPool)
tag
- the frameType to usebyteCodeOffset
- typesOfLocals
- array of StackMapType
s of localstypesOfStackItems
- array ot StackMapType
s of stack itemsconstantPool
- the constant poolpublic void accept(Visitor v)
public StackMapEntry copy()
public void dump(DataOutputStream file) throws IOException
file
- Output file streamIOException
- if an I/O error occurs.public int getByteCodeOffset()
public ConstantPool getConstantPool()
public int getFrameType()
public int getNumberOfLocals()
public int getNumberOfStackItems()
public StackMapType[] getTypesOfLocals()
public StackMapType[] getTypesOfStackItems()
public void setByteCodeOffset(int newOffset)
public void setConstantPool(ConstantPool constantPool)
constantPool
- Constant pool to be used for this object.public void setFrameType(int ft)
@Deprecated public void setNumberOfLocals(int n)
@Deprecated public void setNumberOfStackItems(int n)
public void setTypesOfLocals(StackMapType[] types)
public void setTypesOfStackItems(StackMapType[] types)
public String toString()
public void updateByteCodeOffset(int delta)
delta
- offset deltaCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.