result.append(c.getNameAndTypeIndex());
result.append(";\t// ");
result.append(Utility.replace(
constPool.constantToString(c), " ", ":"));
} else if (constant instanceof ConstantInterfaceMethodref) {
ConstantInterfaceMethodref c = (ConstantInterfaceMethodref) constant;
result.append("InterfaceMethod\t#");
result.append(c.getClassIndex());
result.append(".#");
result.append(c.getNameAndTypeIndex());
result.append(";\t// ");
result.append(Utility.replace(
constPool.constantToString(c), " ", ":"));
} else if (constant instanceof ConstantDouble) {
ConstantDouble c = (ConstantDouble) constant;
result.append("double\t");
result.append(constPool.constantToString(c));
result.append(';');
} else if (constant instanceof ConstantFloat) {
ConstantFloat c = (ConstantFloat) constant;
result.append("float\t");
result.append(constPool.constantToString(c));
result.append(';');
} else if (constant instanceof ConstantInteger) {
ConstantInteger c = (ConstantInteger) constant;
result.append("int\t");
result.append(constPool.constantToString(c));
result.append(';');
} else if (constant instanceof ConstantLong) {
ConstantLong c = (ConstantLong) constant;
result.append("long\t");
result.append(constPool.constantToString(c));
result.append(';');
} else if (constant instanceof ConstantClass) {
ConstantClass c = (ConstantClass) constant;
result.append("class\t#");
result.append(c.getNameIndex());
result.append(";\t// ");
result.append(constPool.constantToString(c));
} else if (constant instanceof ConstantString) {
ConstantString c = (ConstantString) constant;
result.append("String\t#");
result.append(c.getStringIndex());
result.append(";\t// ");
result.append(constPool.constantToString(c));
}
result.append(n);