Top Description Fields Constructors Methods
org.aspectj.apache.bcel.classfile

public final Class StackMapEntry

extends Object
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Imports
java.io.DataInputStream, .DataOutputStream, .IOException

This 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
Author
M. Dahm
Version
$Id: StackMapEntry.java,v 1.5 2008/05/28 23:53:02 aclement Exp $
See Also
StackMap, StackMapType

Field Summary

Modifier and TypeField and Description
private int
private ConstantPool
private int
private int
private StackMapType[]
private StackMapType[]

Constructor Summary

AccessConstructor and Description
pack-priv
StackMapEntry(DataInputStream
Input stream
file
,
ConstantPool constant_pool)

Construct object from file stream.

public
StackMapEntry(int byte_code_offset, int number_of_locals, StackMapType[] types_of_locals, int number_of_stack_items, StackMapType[] types_of_stack_items, ConstantPool constant_pool)

Method Summary

Modifier and TypeMethod and Description
public void
accept(ClassVisitor
Visitor object
v
)

Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class.

public StackMapEntry

Returns:

deep copy of this object
copy
()

public final void
dump(DataOutputStream
Output file stream
file
)

Dump stack map entry

public int
public final ConstantPool

Returns:

Constant pool used by this object.
getConstantPool
()

public int
public int
public StackMapType[]
public StackMapType[]
public void
public final void
setConstantPool(ConstantPool
Constant pool to be used for this object.
constant_pool
)

public void
public void
public void
public void
public final String

Returns:

String representation.
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

byte_code_offsetback to summary
private int byte_code_offset
constant_poolback to summary
private ConstantPool constant_pool
number_of_localsback to summary
private int number_of_locals
number_of_stack_itemsback to summary
private int number_of_stack_items
types_of_localsback to summary
private StackMapType[] types_of_locals
types_of_stack_itemsback to summary
private StackMapType[] types_of_stack_items

Constructor Detail

StackMapEntryback to summary
pack-priv StackMapEntry(DataInputStream file, ConstantPool constant_pool) throws IOException

Construct object from file stream.

Parameters
file:DataInputStream

Input stream

StackMapEntryback to summary
public StackMapEntry(int byte_code_offset, int number_of_locals, StackMapType[] types_of_locals, int number_of_stack_items, StackMapType[] types_of_stack_items, ConstantPool constant_pool)

Method Detail

acceptback to summary
public void accept(ClassVisitor 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:ClassVisitor

Visitor object

copyback to summary
public StackMapEntry copy()
Returns:StackMapEntry

deep copy of this object

dumpback to summary
public final void dump(DataOutputStream file) throws IOException

Dump stack map entry

Parameters
file:DataOutputStream

Output file stream

getByteCodeOffsetback to summary
public int getByteCodeOffset()
getConstantPoolback to summary
public final ConstantPool getConstantPool()
Returns:ConstantPool

Constant pool used by this object.

getNumberOfLocalsback to summary
public int getNumberOfLocals()
getNumberOfStackItemsback to summary
public int getNumberOfStackItems()
getTypesOfLocalsback to summary
public StackMapType[] getTypesOfLocals()
getTypesOfStackItemsback to summary
public StackMapType[] getTypesOfStackItems()
setByteCodeOffsetback to summary
public void setByteCodeOffset(int b)
setConstantPoolback to summary
public final void setConstantPool(ConstantPool constant_pool)
Parameters
constant_pool:ConstantPool

Constant pool to be used for this object.

setNumberOfLocalsback to summary
public void setNumberOfLocals(int n)
setNumberOfStackItemsback to summary
public void setNumberOfStackItems(int n)
setTypesOfLocalsback to summary
public void setTypesOfLocals(StackMapType[] t)
setTypesOfStackItemsback to summary
public void setTypesOfStackItems(StackMapType[] t)
toStringback to summary
public final String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

String representation.