All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class BIT.lowBIT.Code_Attribute

java.lang.Object
   |
   +----BIT.lowBIT.Attribute_Info
           |
           +----BIT.lowBIT.Code_Attribute

public class Code_Attribute
extends Attribute_Info
One of the attributes that represents the code inside a method. This attribute contains the actual code buffer as well as information about exception tables.

See Also:
Attribute_Info

Variable Index

 o attribute_count
attribute_count indicates the number of attributes in attributes array.
 o attributes
attributes is an array of attribute_info.
 o code
code array is the code (what else? :).
 o code_length
code-length indicates the number of bytes in the code array for this method.
 o exception_table_length
exception_table_length indicates the number of entries in the exception_table table.
 o exceptions
exceptions is an array of exception_table.
 o max_locals
max_locals indicates the number of local vairables used by this method.
 o max_stack
max_stack indicates the maximum number of words on the operand statck at any point during execution of this method.

Constructor Index

 o Code_Attribute(Cp_Info[], DataInputStream, short)
Parses this attribute given a DataInputStream.

Method Index

 o write(Cp_Info[], DataOutputStream)
Given an output stream, it outputs its data to that output stream.

Variables

 o max_stack
 public short max_stack
max_stack indicates the maximum number of words on the operand statck at any point during execution of this method.

 o max_locals
 public short max_locals
max_locals indicates the number of local vairables used by this method.

 o code_length
 public int code_length
code-length indicates the number of bytes in the code array for this method.

 o code
 public byte code[]
code array is the code (what else? :).

 o exception_table_length
 public short exception_table_length
exception_table_length indicates the number of entries in the exception_table table.

 o exceptions
 public Exception_Table exceptions[]
exceptions is an array of exception_table.

See Also:
Exception_Table
 o attribute_count
 public short attribute_count
attribute_count indicates the number of attributes in attributes array.

 o attributes
 public Attribute_Info attributes[]
attributes is an array of attribute_info.

See Also:
Attribute_Info

Constructors

 o Code_Attribute
 public Code_Attribute(Cp_Info constant_pool[],
                       DataInputStream iStream,
                       short attribute_name_index) throws IOException
Parses this attribute given a DataInputStream.

Parameters:
constant - pool table for the class
DataInputStream - to be parsed
the - index of this attribute into the constant pool

Methods

 o write
 public void write(Cp_Info constant_pool[],
                   DataOutputStream oStream) throws IOException
Given an output stream, it outputs its data to that output stream.

Parameters:
constant - pool table
output - stream where to output the data

All Packages  Class Hierarchy  This Package  Previous  Next  Index