Methods Summary |
---|
public java.lang.String | getMethodClassName()Get the name of the class defining the method
return methodClassName;
|
public java.lang.String | getMethodName()Get the name of the method.
return methodName;
|
public java.lang.String | getMethodType()Get the type signature of the method.
return methodType;
|
public void | read(java.io.DataInputStream cpStream)read a constant pool entry from a class stream.
classIndex = cpStream.readUnsignedShort();
nameAndTypeIndex = cpStream.readUnsignedShort();
|
public void | resolve(ConstantPool constantPool)Resolve this constant pool entry with respect to its dependents in
the constant pool.
ClassCPInfo methodClass
= (ClassCPInfo) constantPool.getEntry(classIndex);
methodClass.resolve(constantPool);
methodClassName = methodClass.getClassName();
NameAndTypeCPInfo nt
= (NameAndTypeCPInfo) constantPool.getEntry(nameAndTypeIndex);
nt.resolve(constantPool);
methodName = nt.getName();
methodType = nt.getType();
super.resolve(constantPool);
|
public java.lang.String | toString()Print a readable version of the constant pool entry.
String value;
if (isResolved()) {
value = "Method : Class = " + methodClassName + ", name = "
+ methodName + ", type = " + methodType;
} else {
value = "Method : Class index = " + classIndex
+ ", name and type index = " + nameAndTypeIndex;
}
return value;
|