case TYPE_CONSTANT: {
sb.append(getInt(i));
break;
}
case TYPE_CONSTANT_POOL_CLASS: {
ConstantPoolInfo cpi = dc.getConstantPool().get(getInt(i));
ClassInfo ci = (ClassInfo) cpi;
sb.append(ci.getName());
break;
}
case TYPE_CONSTANT_POOL_CONSTANT: {
ConstantPoolInfo cpi = dc.getConstantPool().get(getInt(i));
sb.append(cpi.getValue());
break;
}
case TYPE_CONSTANT_POOL_FIELD_REF: {
ConstantPoolInfo cpi = dc.getConstantPool().get(getInt(i));
RefInfo ri = (RefInfo) cpi;
Descriptor desc = ri.getDescriptor();
sb.append(desc.getReturn() + " " + ri.getClassName() + "."
+ ri.getTargetName());
break;
}
case TYPE_CONSTANT_POOL_METHOD_REF: {
ConstantPoolInfo cpi = dc.getConstantPool().get(getInt(i));
RefInfo ri = (RefInfo) cpi;
Descriptor desc = ri.getDescriptor();
sb.append(desc.getReturn() + " " + ri.getClassName() + "."
+ ri.getTargetName() + "(" + desc.getParams() + ")");
break;