Package org.apache.bcel.classfile
Class StackMapTableEntry
- java.lang.Object
-
- org.apache.bcel.classfile.StackMapTableEntry
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public final class StackMapTableEntry extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableThis class represents a stack map entry recording the types of local variables and the the of stack items at a given byte code offset. See CLDC specification ��?5.3.1.2- See Also:
StackMap,StackMapType, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StackMapTableEntry(int tag, int byte_code_offset_delta, int number_of_locals, StackMapType[] types_of_locals, int number_of_stack_items, StackMapType[] types_of_stack_items, ConstantPool constant_pool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor v)Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class.StackMapTableEntrycopy()voiddump(java.io.DataOutputStream file)Dump stack map entryintgetByteCodeOffsetDelta()ConstantPoolgetConstantPool()intgetNumberOfLocals()intgetNumberOfStackItems()StackMapType[]getTypesOfLocals()StackMapType[]getTypesOfStackItems()voidsetByteCodeOffsetDelta(int b)voidsetConstantPool(ConstantPool constant_pool)voidsetNumberOfLocals(int n)voidsetNumberOfStackItems(int n)voidsetTypesOfLocals(StackMapType[] t)voidsetTypesOfStackItems(StackMapType[] t)java.lang.StringtoString()
-
-
-
Constructor Detail
-
StackMapTableEntry
public StackMapTableEntry(int tag, int byte_code_offset_delta, int number_of_locals, StackMapType[] types_of_locals, int number_of_stack_items, StackMapType[] types_of_stack_items, ConstantPool constant_pool)
-
-
Method Detail
-
dump
public final void dump(java.io.DataOutputStream file) throws java.io.IOExceptionDump stack map entry- Parameters:
file- Output file stream- Throws:
java.io.IOException
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation.
-
setByteCodeOffsetDelta
public void setByteCodeOffsetDelta(int b)
-
getByteCodeOffsetDelta
public int getByteCodeOffsetDelta()
-
setNumberOfLocals
public void setNumberOfLocals(int n)
-
getNumberOfLocals
public int getNumberOfLocals()
-
setTypesOfLocals
public void setTypesOfLocals(StackMapType[] t)
-
getTypesOfLocals
public StackMapType[] getTypesOfLocals()
-
setNumberOfStackItems
public void setNumberOfStackItems(int n)
-
getNumberOfStackItems
public int getNumberOfStackItems()
-
setTypesOfStackItems
public void setTypesOfStackItems(StackMapType[] t)
-
getTypesOfStackItems
public StackMapType[] getTypesOfStackItems()
-
copy
public StackMapTableEntry copy()
- Returns:
- deep copy of this object
-
accept
public void accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.- Parameters:
v- Visitor object
-
getConstantPool
public final ConstantPool getConstantPool()
- Returns:
- Constant pool used by this object.
-
setConstantPool
public final void setConstantPool(ConstantPool constant_pool)
- Parameters:
constant_pool- Constant pool to be used for this object.
-
-