All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class futils.utils.MethodInfo

java.lang.Object
   |
   +----futils.utils.MethodInfo

public class MethodInfo
extends java.lang.Object
This class describes a Method as it is stored in the class file. The attribute associated with method is the code that actually implements the method. Since we don't need to manipulate the byte codes directly we leave them as an opaque chunk in the attributes[] array. References in the code are all references into the constant table so when we are modifing a class to use a different object we needn't get into the code level.

Version:
1.4, 16 Aug 1995
Author:
Chuck McManis
See Also:
ClassFile

Variable Index

 o accessFlags
 o attributes
 o name
 o signature

Constructor Index

 o MethodInfo()

Method Index

 o read(DataInputStream, ConstantPoolInfo[])
Read a method_info from the data stream.
 o toString()
Generic toString method, init method is unchanged.
 o toString(String)
print out the method, much as you would see it in the source file.
 o write(DataOutputStream, ConstantPoolInfo[])
Write out a method_info, do constant table fixups on the write.

Variables

 o accessFlags
 short accessFlags
 o name
 futils.utils.ConstantPoolInfo name
 o signature
 futils.utils.ConstantPoolInfo signature
 o attributes
 futils.utils.AttributeInfo attributes[]

Constructors

 o MethodInfo
 public MethodInfo()

Methods

 o read
 public boolean read(java.io.DataInputStream di,
                     futils.utils.ConstantPoolInfo pool[]) throws java.io.IOException
Read a method_info from the data stream.

 o write
 public void write(java.io.DataOutputStream dos,
                   futils.utils.ConstantPoolInfo pool[]) throws java.io.IOException, java.lang.Exception
Write out a method_info, do constant table fixups on the write.

 o toString
 public java.lang.String toString(java.lang.String className)
print out the method, much as you would see it in the source file. The string ClassName is substituted for <init> when printing.

 o toString
 public java.lang.String toString()
Generic toString method, init method is unchanged.

Overrides:
toString in class java.lang.Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index