org.apache.bcel.classfile
Class StackMapType
java.lang.Object
org.apache.bcel.classfile.StackMapType
- Cloneable
public final class StackMapType
extends java.lang.Object
implements Cloneable
This class represents the type of a local variable or item on stack
used in the StackMap entries.
$Id: StackMapType.java,v 1.2 2002/03/11 16:16:35 mdahm Exp $
StackMapType
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 offset
dump
public final void dump(DataOutputStream file)
throws IOException
Dump type entries to file.
file
- Output file stream
getConstantPool
public final ConstantPool getConstantPool()
- Constant pool used by this object.
getIndex
public int getIndex()
- index to constant pool if type == ITEM_Object, or offset
in byte code, if type == ITEM_NewObject, and -1 otherwise
getType
public byte getType()
hasIndex
public final boolean hasIndex()
- true, if type is either ITEM_Object or ITEM_NewObject
setConstantPool
public final void setConstantPool(ConstantPool constant_pool)
constant_pool
- Constant pool to be used for this object.
setIndex
public void setIndex(int t)
setType
public void setType(byte t)
toString
public final String toString()