public void setNameIndex(int nameIndex) {
this.nameIndex = nameIndex;
}
public ConstantPoolInfo getConstant() {
ConstantValueAttribute attr = this.attributes.getConstantValueAttribute();
if (attr != null) {
int index = attr.getConstantIndex();
ConstantPoolInfo cpi = this.pool.get(index);
return cpi;
}
return null;