* @return name of referenced method/field.
*/
public String getName(ConstantPool cp) {
if (name == null) {
ConstantCP cmr = (ConstantCP) cp.getConstant(index);
ConstantNameAndType cnat = (ConstantNameAndType) cp.getConstant(cmr.getNameAndTypeIndex());
name = ((ConstantUtf8) cp.getConstant(cnat.getNameIndex())).getValue();
}
return name;
}