<p>-version 3.19 | <p>-version 3.19 | ||||
<ul> | <ul> | ||||
<li>JIRA JASSIST-158, 205, 206, 207, 211, 212, 216, 223, 224. | |||||
<li>JIRA JASSIST-158, 205, 206, 207, 211, 212, 216, 220, 223, 224, 227. | |||||
</ul> | </ul> | ||||
</p> | </p> | ||||
*/ | */ | ||||
public int byteAt(int index) { return bytecode[index] & 0xff; } | public int byteAt(int index) { return bytecode[index] & 0xff; } | ||||
/** | |||||
* Returns the signed 8bit value at the given index. | |||||
*/ | |||||
public int signedByteAt(int index) { return bytecode[index]; } | |||||
/** | /** | ||||
* Writes an 8bit value at the given index. | * Writes an 8bit value at the given index. | ||||
*/ | */ |
case IF_ICMPNE: | case IF_ICMPNE: | ||||
return opstring + " " + (iter.s16bitAt(pos + 1) + pos); | return opstring + " " + (iter.s16bitAt(pos + 1) + pos); | ||||
case IINC: | case IINC: | ||||
return opstring + " " + iter.byteAt(pos + 1); | |||||
return opstring + " " + iter.byteAt(pos + 1) + ", " + iter.signedByteAt(pos + 2); | |||||
case GOTO: | case GOTO: | ||||
case JSR: | case JSR: | ||||
return opstring + " " + (iter.s16bitAt(pos + 1) + pos); | return opstring + " " + (iter.s16bitAt(pos + 1) + pos); |
*/ | */ | ||||
public static void main(String[] args) throws Exception { | public static void main(String[] args) throws Exception { | ||||
if (args.length != 1) { | if (args.length != 1) { | ||||
System.err.println("Usage: java javassist.tools.framedump <class file name>"); | |||||
System.err.println("Usage: java javassist.tools.framedump <fully-qualified class name>"); | |||||
return; | return; | ||||
} | } | ||||