org.apache.bcel.classfile
public final class StackMapType extends Object implements Cloneable
Version: $Id: StackMapType.java 386056 2006-03-15 11:31:56Z tcurdt $
See Also: StackMapEntry StackMap Constants
Field Summary | |
---|---|
ConstantPool | constant_pool |
int | index |
byte | type |
Constructor Summary | |
---|---|
StackMapType(DataInputStream file, ConstantPool constant_pool)
Construct object from file stream. | |
StackMapType(byte type, int index, ConstantPool constant_pool) |
Method Summary | |
---|---|
StackMapType | copy() |
void | dump(DataOutputStream file)
Dump type entries to file.
|
ConstantPool | getConstantPool() |
int | getIndex() |
byte | getType() |
boolean | hasIndex() |
String | printIndex() |
void | setConstantPool(ConstantPool constant_pool) |
void | setIndex(int t) |
void | setType(byte t) |
String | toString() |
Parameters: file Input stream
Throws: IOException
Parameters: type type tag as defined in the Constants interface index index to constant pool, or byte code offset
Returns: deep copy of this object
Parameters: file Output file stream
Throws: IOException
Returns: Constant pool used by this object.
Returns: index to constant pool if type == ITEM_Object, or offset in byte code, if type == ITEM_NewObject, and -1 otherwise
Returns: true, if type is either ITEM_Object or ITEM_NewObject
Parameters: constant_pool Constant pool to be used for this object.
Returns: String representation