All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class shai.vmutils.MethodEntry

java.lang.Object
   |
   +----shai.vmutils.MethodEntry

public class MethodEntry
extends Object
This class contains the representation of a method in the class file.


Variable Index

 o methodAttributes
 o methodMode
 o methodName
 o methodType

Constructor Index

 o MethodEntry(DataInputStream, ConstantPoolEntry[])
This method reads the data regarding the method into memory.

Method Index

 o getMethodAttributes()
This method returns the methods attributes.
 o getMethodName()
This method returns the offset of the method name in the constant pool.
 o getMethodType()
This method returns the offset of the method type in the constant pool.
 o save(DataOutputStream)
This method will save the method table into the file

Variables

 o methodName
 int methodName
 o methodType
 int methodType
 o methodAttributes
 AttributeEntry methodAttributes
 o methodMode
 int methodMode

Constructors

 o MethodEntry
 public MethodEntry(DataInputStream dataStream,
                    ConstantPoolEntry constantPool[]) throws IOException, ClassFormatError
This method reads the data regarding the method into memory.

Parameters:
dataStream - java.io.DataInputStream
ConstantPoolEntry - constantPool[]
Throws: IOException
The exception description.

Methods

 o getMethodAttributes
 public AttributeEntry getMethodAttributes()
This method returns the methods attributes.

Returns:
shai.vmutils.AttributeEntry
 o getMethodName
 public int getMethodName()
This method returns the offset of the method name in the constant pool.

Returns:
java.lang.String
 o getMethodType
 public int getMethodType()
This method returns the offset of the method type in the constant pool.

Returns:
java.lang.String
 o save
 public void save(DataOutputStream outputStream) throws IOException
This method will save the method table into the file

Parameters:
outputStream - java.io.DataOutputStream
Throws: IOException
The exception description.

All Packages  Class Hierarchy  This Package  Previous  Next  Index