/** * Helper to produce the first bit of output for each instruction. * * @param offset the offset to the start of the instruction */ private String header(int offset) { /* * Note: This uses the original bytecode, not the * possibly-transformed one. */ int opcode = bytes.getUnsignedByte(offset); String name = ByteOps.opName(opcode); if (opcode == ByteOps.WIDE) { opcode = bytes.getUnsignedByte(offset + 1); name += " " + ByteOps.opName(opcode); } return Hex.u2(offset) + ": " + name; }
/** * Helper to produce the first bit of output for each instruction. * * @param offset the offset to the start of the instruction */ private String header(int offset) { /* * Note: This uses the original bytecode, not the * possibly-transformed one. */ int opcode = bytes.getUnsignedByte(offset); String name = ByteOps.opName(opcode); if (opcode == ByteOps.WIDE) { opcode = bytes.getUnsignedByte(offset + 1); name += " " + ByteOps.opName(opcode); } return Hex.u2(offset) + ": " + name; }
/** * Helper to produce the first bit of output for each instruction. * * @param offset the offset to the start of the instruction */ private String header(int offset) { /* * Note: This uses the original bytecode, not the * possibly-transformed one. */ int opcode = bytes.getUnsignedByte(offset); String name = ByteOps.opName(opcode); if (opcode == ByteOps.WIDE) { opcode = bytes.getUnsignedByte(offset + 1); name += " " + ByteOps.opName(opcode); } return Hex.u2(offset) + ": " + name; }
/** * Helper to produce the first bit of output for each instruction. * * @param offset the offset to the start of the instruction */ private String header(int offset) { /* * Note: This uses the original bytecode, not the * possibly-transformed one. */ int opcode = bytes.getUnsignedByte(offset); String name = ByteOps.opName(opcode); if (opcode == ByteOps.WIDE) { opcode = bytes.getUnsignedByte(offset + 1); name += " " + ByteOps.opName(opcode); } return Hex.u2(offset) + ": " + name; }
/** * Helper to produce the first bit of output for each instruction. * * @param offset the offset to the start of the instruction */ private String header(int offset) { /* * Note: This uses the original bytecode, not the * possibly-transformed one. */ int opcode = bytes.getUnsignedByte(offset); String name = ByteOps.opName(opcode); if (opcode == ByteOps.WIDE) { opcode = bytes.getUnsignedByte(offset + 1); name += " " + ByteOps.opName(opcode); } return Hex.u2(offset) + ": " + name; }
/** * Helper to produce the first bit of output for each instruction. * * @param offset the offset to the start of the instruction */ private String header(int offset) { /* * Note: This uses the original bytecode, not the * possibly-transformed one. */ int opcode = bytes.getUnsignedByte(offset); String name = ByteOps.opName(opcode); if (opcode == ByteOps.WIDE) { opcode = bytes.getUnsignedByte(offset + 1); name += " " + ByteOps.opName(opcode); } return Hex.u2(offset) + ": " + name; }
/** * Helper for {@link #visitConstant} where the constant is an * {@code int}. * * @param opcode the opcode * @param offset offset to the instruction * @param length instruction length * @param value constant value */ private void visitLiteralInt(int opcode, int offset, int length, int value) { String commentOrSpace = (length == 1) ? " // " : " "; String valueStr; opcode = bytes.getUnsignedByte(offset); // Compare with orig op below. if ((length == 1) || (opcode == ByteOps.BIPUSH)) { valueStr = "#" + Hex.s1(value); } else if (opcode == ByteOps.SIPUSH) { valueStr = "#" + Hex.s2(value); } else { valueStr = "#" + Hex.s4(value); } observer.parsed(bytes, offset, length, header(offset) + commentOrSpace + valueStr); }
/** * Helper for {@link #visitConstant} where the constant is an * {@code int}. * * @param opcode the opcode * @param offset offset to the instruction * @param length instruction length * @param value constant value */ private void visitLiteralInt(int opcode, int offset, int length, int value) { String commentOrSpace = (length == 1) ? " // " : " "; String valueStr; opcode = bytes.getUnsignedByte(offset); // Compare with orig op below. if ((length == 1) || (opcode == ByteOps.BIPUSH)) { valueStr = "#" + Hex.s1(value); } else if (opcode == ByteOps.SIPUSH) { valueStr = "#" + Hex.s2(value); } else { valueStr = "#" + Hex.s4(value); } observer.parsed(bytes, offset, length, header(offset) + commentOrSpace + valueStr); }
/** * Helper for {@link #visitConstant} where the constant is an * {@code int}. * * @param opcode the opcode * @param offset offset to the instruction * @param length instruction length * @param value constant value */ private void visitLiteralInt(int opcode, int offset, int length, int value) { String commentOrSpace = (length == 1) ? " // " : " "; String valueStr; opcode = bytes.getUnsignedByte(offset); // Compare with orig op below. if ((length == 1) || (opcode == ByteOps.BIPUSH)) { valueStr = "#" + Hex.s1(value); } else if (opcode == ByteOps.SIPUSH) { valueStr = "#" + Hex.s2(value); } else { valueStr = "#" + Hex.s4(value); } observer.parsed(bytes, offset, length, header(offset) + commentOrSpace + valueStr); }
/** * Helper for {@link #visitConstant} where the constant is an * {@code int}. * * @param opcode the opcode * @param offset offset to the instruction * @param length instruction length * @param value constant value */ private void visitLiteralInt(int opcode, int offset, int length, int value) { String commentOrSpace = (length == 1) ? " // " : " "; String valueStr; opcode = bytes.getUnsignedByte(offset); // Compare with orig op below. if ((length == 1) || (opcode == ByteOps.BIPUSH)) { valueStr = "#" + Hex.s1(value); } else if (opcode == ByteOps.SIPUSH) { valueStr = "#" + Hex.s2(value); } else { valueStr = "#" + Hex.s4(value); } observer.parsed(bytes, offset, length, header(offset) + commentOrSpace + valueStr); }
/** * Helper for {@link #visitConstant} where the constant is an * {@code int}. * * @param opcode the opcode * @param offset offset to the instruction * @param length instruction length * @param value constant value */ private void visitLiteralInt(int opcode, int offset, int length, int value) { String commentOrSpace = (length == 1) ? " // " : " "; String valueStr; opcode = bytes.getUnsignedByte(offset); // Compare with orig op below. if ((length == 1) || (opcode == ByteOps.BIPUSH)) { valueStr = "#" + Hex.s1(value); } else if (opcode == ByteOps.SIPUSH) { valueStr = "#" + Hex.s2(value); } else { valueStr = "#" + Hex.s4(value); } observer.parsed(bytes, offset, length, header(offset) + commentOrSpace + valueStr); }
/** * Helper for {@link #visitConstant} where the constant is an * {@code int}. * * @param opcode the opcode * @param offset offset to the instruction * @param length instruction length * @param value constant value */ private void visitLiteralInt(int opcode, int offset, int length, int value) { String commentOrSpace = (length == 1) ? " // " : " "; String valueStr; opcode = bytes.getUnsignedByte(offset); // Compare with orig op below. if ((length == 1) || (opcode == ByteOps.BIPUSH)) { valueStr = "#" + Hex.s1(value); } else if (opcode == ByteOps.SIPUSH) { valueStr = "#" + Hex.s2(value); } else { valueStr = "#" + Hex.s4(value); } observer.parsed(bytes, offset, length, header(offset) + commentOrSpace + valueStr); }
padding = (padding << 8) | bytes.getUnsignedByte(i);
padding = (padding << 8) | bytes.getUnsignedByte(i);
padding = (padding << 8) | bytes.getUnsignedByte(i);
padding = (padding << 8) | bytes.getUnsignedByte(i);
padding = (padding << 8) | bytes.getUnsignedByte(i);
padding = (padding << 8) | bytes.getUnsignedByte(i);
padding = (padding << 8) | bytes.getUnsignedByte(i);
padding = (padding << 8) | bytes.getUnsignedByte(i);