|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.loader.MethodInfo
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.
ClassFile
Field Summary | |
(package private) short |
accessFlags
|
(package private) AttributeInfo[] |
attributes
|
(package private) ConstantPoolInfo |
name
|
(package private) ConstantPoolInfo |
signature
|
private static String |
versionID
|
Constructor Summary | |
MethodInfo()
|
Method Summary | |
boolean |
read(DataInputStream di,
ConstantPoolInfo[] pool)
Read a method_info from the data stream. |
String |
toString()
Generic toString method, init method is unchanged. |
String |
toString(String className)
print out the method, much as you would see it in the source file. |
void |
write(DataOutputStream dos,
ConstantPoolInfo[] pool)
Write out a method_info, do constant table fixups on the write. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String versionID
short accessFlags
ConstantPoolInfo name
ConstantPoolInfo signature
AttributeInfo[] attributes
Constructor Detail |
public MethodInfo()
Method Detail |
public boolean read(DataInputStream di, ConstantPoolInfo[] pool) throws IOException
IOException
public void write(DataOutputStream dos, ConstantPoolInfo[] pool) throws IOException, Exception
IOException
Exception
public String toString(String className)
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |