Class StackMapType
java.lang.Object
org.aspectj.apache.bcel.classfile.StackMapType
- All Implemented Interfaces:
Cloneable
This class represents the type of a local variable or item on stack
used in the StackMap entries.
- Version:
- $Id: StackMapType.java,v 1.3 2008/05/28 23:53:02 aclement Exp $
- Author:
- M. Dahm
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
final void
dump
(DataOutputStream file) Dump type entries to file.final ConstantPool
int
getIndex()
byte
getType()
final boolean
hasIndex()
final void
setConstantPool
(ConstantPool constant_pool) void
setIndex
(int t) void
setType
(byte t) final String
toString()
-
Constructor Details
-
StackMapType
- Parameters:
type
- type tag as defined in the Constants interfaceindex
- index to constant pool, or byte code offset
-
-
Method Details
-
setType
public void setType(byte t) -
getType
public byte getType() -
setIndex
public void setIndex(int t) -
getIndex
public int getIndex()- Returns:
- index to constant pool if type == ITEM_Object, or offset in byte code, if type == ITEM_NewObject, and -1 otherwise
-
dump
Dump type entries to file.- Parameters:
file
- Output file stream- Throws:
IOException
-
hasIndex
public final boolean hasIndex()- Returns:
- true, if type is either ITEM_Object or ITEM_NewObject
-
toString
-
copy
- Returns:
- deep copy of this object
-
getConstantPool
- Returns:
- Constant pool used by this object.
-
setConstantPool
- Parameters:
constant_pool
- Constant pool to be used for this object.
-