All Packages Class Hierarchy This Package Previous Next Index
Class BIT.lowBIT.ClassFile
java.lang.Object
|
+----BIT.lowBIT.ClassFile
- public class ClassFile
- extends Object
-
access_flags
-
Access modifier for this class.
-
attributes
- Each entry is an attribute_info structure and contains information
about each attribute in this class.
-
attributes_count
- Represents the number of attributes present in this class.
-
constant_pool
-
This is where class file keeps its data such as names of methods,
fields, class, and other constants.
-
constant_pool_count
-
The number of entries in the contant pool table.
-
field_count
- Represents the number of fields present in this class.
-
fields
- Each entry is a field_info structure and contains information
about each field in this class.
-
interface_count
- Represents the number of superinterfaces of this class.
-
interfaces
- Each entry is an index into the constant pool table and contains information
about the interface.
-
magic
- 0xCAFEBABE identifies the class file format.
-
major_version
-
Major version of the compiler used to create this class file.
-
methods
- Each entry is a method_info structure and contains information
about each method in this class.
-
methods_count
- Represents the number of methods present in this class.
-
minor_version
-
Minor version of the compiler used to create this class file.
-
super_class
- Index into the constant pool containing information about this class's super class.
-
this_class
- Index into the constant pool containing information about current class.
-
ClassFile(String)
- Constructor reads in a class file and parses it into its internal representation.
-
addConstantPoolEntry(Cp_Info)
- Allows one to add a contant pool entry (Cp_Info) to the constant pool table.
-
write(String)
- Outputs the internal representation of this ClassFile to a file.
magic
public int magic
- 0xCAFEBABE identifies the class file format.
minor_version
public short minor_version
- Minor version of the compiler used to create this class file.
major_version
public short major_version
- Major version of the compiler used to create this class file.
constant_pool_count
public short constant_pool_count
- The number of entries in the contant pool table.
- See Also:
- constant_pool
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.
access_flags
public short access_flags
- Access modifier for this class.
this_class
public short this_class
- Index into the constant pool containing information about current class.
- See Also:
- constant_pool
super_class
public short super_class
- Index into the constant pool containing information about this class's super class.
- See Also:
- constant_pool
interface_count
public short interface_count
- Represents the number of superinterfaces of this class.
interfaces
public short interfaces[]
- Each entry is an index into the constant pool table and contains information
about the interface.
- See Also:
- constant_pool
field_count
public short field_count
- Represents the number of fields present in this class.
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
methods_count
public short methods_count
- Represents the number of methods present in this class.
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
attributes_count
public short attributes_count
- Represents the number of attributes present in this class.
attributes
public Attribute_Info attributes[]
- Each entry is an attribute_info structure and contains information
about each attribute in this class.
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
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
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