Methods Summary |
---|
public java.lang.String | getClassName()Returns class name.
resolve();
return class_name;
|
public java.lang.String | getDescriptor()Returns method descriptor.
resolve();
return descriptor;
|
public java.lang.String | getMethodName()Returns method name.
resolve();
return method_name;
|
public void | parse(java.io.DataInputStream dis)Parses constant pool entry.
class_index = dis.readUnsignedShort();
nameAndType_index = dis.readUnsignedShort();
|
private void | resolve()Resolves the constant pool entry.
if (! resolved) {
class_name = cp.getConstantClass(class_index).getClassName();
JConstantNameAndType nameAndTypeConstant =
cp.getConstantNameAndType(nameAndType_index);
method_name = nameAndTypeConstant.getName();
descriptor = nameAndTypeConstant.getDescriptor();
resolved = true;
}
|