All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class BIT.lowBIT.ClassFile

java.lang.Object
   |
   +----BIT.lowBIT.ClassFile

public class ClassFile
extends Object

Variable Index

 o access_flags
Access modifier for this class.
 o attributes
Each entry is an attribute_info structure and contains information about each attribute in this class.
 o attributes_count
Represents the number of attributes present in this class.
 o constant_pool
This is where class file keeps its data such as names of methods, fields, class, and other constants.
 o constant_pool_count
The number of entries in the contant pool table.
 o field_count
Represents the number of fields present in this class.
 o fields
Each entry is a field_info structure and contains information about each field in this class.
 o interface_count
Represents the number of superinterfaces of this class.
 o interfaces
Each entry is an index into the constant pool table and contains information about the interface.
 o magic
0xCAFEBABE identifies the class file format.
 o major_version
Major version of the compiler used to create this class file.
 o methods
Each entry is a method_info structure and contains information about each method in this class.
 o methods_count
Represents the number of methods present in this class.
 o minor_version
Minor version of the compiler used to create this class file.
 o super_class
Index into the constant pool containing information about this class's super class.
 o this_class
Index into the constant pool containing information about current class.

Constructor Index

 o ClassFile(String)
Constructor reads in a class file and parses it into its internal representation.

Method Index

 o addConstantPoolEntry(Cp_Info)
Allows one to add a contant pool entry (Cp_Info) to the constant pool table.
 o write(String)
Outputs the internal representation of this ClassFile to a file.

Variables

 o magic
 public int magic
0xCAFEBABE identifies the class file format.

 o minor_version
 public short minor_version
Minor version of the compiler used to create this class file.

 o major_version
 public short major_version
Major version of the compiler used to create this class file.

 o constant_pool_count
 public short constant_pool_count
The number of entries in the contant pool table.

See Also:
constant_pool
 o constant_pool
 public Cp_Info constant_pool[]
This is where class file keeps its data such as names of methods, fields, class, and other constants.

 o access_flags
 public short access_flags
Access modifier for this class.

 o this_class
 public short this_class
Index into the constant pool containing information about current class.

See Also:
constant_pool
 o super_class
 public short super_class
Index into the constant pool containing information about this class's super class.

See Also:
constant_pool
 o interface_count
 public short interface_count
Represents the number of superinterfaces of this class.

 o interfaces
 public short interfaces[]
Each entry is an index into the constant pool table and contains information about the interface.

See Also:
constant_pool
 o field_count
 public short field_count
Represents the number of fields present in this class.

 o fields
 public Field_Info fields[]
Each entry is a field_info structure and contains information about each field in this class.

See Also:
Field_Info
 o methods_count
 public short methods_count
Represents the number of methods present in this class.

 o methods
 public Method_Info methods[]
Each entry is a method_info structure and contains information about each method in this class.

See Also:
Method_Info
 o attributes_count
 public short attributes_count
Represents the number of attributes present in this class.

 o attributes
 public Attribute_Info attributes[]
Each entry is an attribute_info structure and contains information about each attribute in this class.

Constructors

 o ClassFile
 public ClassFile(String filename)
Constructor reads in a class file and parses it into its internal representation.

Parameters:
the - name of the class file to be parsed

Methods

 o write
 public void write(String filename)
Outputs the internal representation of this ClassFile to a file.

Parameters:
the - name of the file to be created
 o addConstantPoolEntry
 public Cp_Info[] addConstantPoolEntry(Cp_Info entry)
Allows one to add a contant pool entry (Cp_Info) to the constant pool table.

Parameters:
the - constant pool entry to be added to the table
Returns:
the new constant pool table
See Also:
Cp_Info

All Packages  Class Hierarchy  This Package  Previous  Next  Index