org.apache.bcel.classfile
public final class StackMapType extends Object implements Cloneable
StackMapEntry
,
StackMap
,
Constants
Modifier and Type | Field and Description |
---|---|
private ConstantPool |
constant_pool |
private int |
index |
private byte |
type |
Constructor and Description |
---|
StackMapType(byte type,
int index,
ConstantPool constant_pool) |
StackMapType(DataInputStream file,
ConstantPool constant_pool)
Construct object from file stream.
|
Modifier and Type | Method and Description |
---|---|
StackMapType |
copy() |
void |
dump(DataOutputStream file)
Dump type entries to file.
|
ConstantPool |
getConstantPool() |
int |
getIndex() |
byte |
getType() |
boolean |
hasIndex() |
private String |
printIndex() |
void |
setConstantPool(ConstantPool constant_pool) |
void |
setIndex(int t) |
void |
setType(byte t) |
String |
toString() |
private byte type
private int index
private ConstantPool constant_pool
StackMapType(DataInputStream file, ConstantPool constant_pool) throws IOException
file
- Input streamIOException
public StackMapType(byte type, int index, ConstantPool constant_pool)
type
- type tag as defined in the Constants interfaceindex
- index to constant pool, or byte code offsetpublic void setType(byte t)
public byte getType()
public void setIndex(int t)
public int getIndex()
public final void dump(DataOutputStream file) throws IOException
file
- Output file streamIOException
public final boolean hasIndex()
private String printIndex()
public final String toString()
public StackMapType copy()
public final ConstantPool getConstantPool()
public final void setConstantPool(ConstantPool constant_pool)
constant_pool
- Constant pool to be used for this object.