Methods Summary |
---|
public java.lang.String | getInterfaceMethodClassName()Gets the name of the class defining the interface method
return interfaceMethodClassName;
|
public java.lang.String | getInterfaceMethodName()Get the name of the interface method
return interfaceMethodName;
|
public java.lang.String | getInterfaceMethodType()Gets the type of the interface method
return interfaceMethodType;
|
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 interfaceMethodClass
= (ClassCPInfo) constantPool.getEntry(classIndex);
interfaceMethodClass.resolve(constantPool);
interfaceMethodClassName = interfaceMethodClass.getClassName();
NameAndTypeCPInfo nt
= (NameAndTypeCPInfo) constantPool.getEntry(nameAndTypeIndex);
nt.resolve(constantPool);
interfaceMethodName = nt.getName();
interfaceMethodType = nt.getType();
super.resolve(constantPool);
|
public java.lang.String | toString()Print a readable version of the constant pool entry.
String value;
if (isResolved()) {
value = "InterfaceMethod : Class = " + interfaceMethodClassName
+ ", name = " + interfaceMethodName + ", type = "
+ interfaceMethodType;
} else {
value = "InterfaceMethod : Class index = " + classIndex
+ ", name and type index = " + nameAndTypeIndex;
}
return value;
|