ret.append(" ");
//ret.append(CurrentEntry.getValue());
OpCode op = CurrentEntry.getValue();
ret.append(String.format("%-16s", op.getName()));
if (op.getName().equals("checkcast")) {
Argument a = op.getArguments().get(0);
int val = getValue(a);
switch (val) {
case 10:
ret.append("T_BOOLEAN");
break;
case 11:
ret.append("T_BYTE");
break;
case 12:
ret.append("T_SHORT");
break;
case 13:
ret.append("T_INT");
break;
case 14:
ret.append("T_REFERENCE");
break;
default :
ret.append("unknown");
break;
}
ret.append(" , index: ").append(op.getArguments().get(1));
}
else if (op.getName().equals("invokeinterface")) {
ret.append(" nargs : ").append(op.getArguments().get(0)).append(",index : 0 const: ");
ret.append(op.getArguments().get(1)).append(",method: ").append(op.getArguments().get(2));
}
else if (op.getName().equals("newarray")) {
Argument a = op.getArguments().get(0);
int val = getValue(a);
switch (val) {
case 10:
ret.append("boolean ");
break;