/** * Gets the name of the given opcode. * * @param opcode {@code >= 0, <= 255;} the opcode * @return {@code non-null;} its name */ public static String opName(int opcode) { String result = OPCODE_NAMES[opcode]; if (result == null) { result = "unused_" + Hex.u1(opcode); OPCODE_NAMES[opcode] = result; } return result; }
/** {@inheritDoc} */ @Override public String toString() { int value = getIntBits(); return "byte{0x" + Hex.u1(value) + " / " + value + '}'; }
/** {@inheritDoc} */ @Override public String toString() { int value = getIntBits(); return "byte{0x" + Hex.u1(value) + " / " + value + '}'; }
/** {@inheritDoc} */ @Override public String toString() { int value = getIntBits(); return "byte{0x" + Hex.u1(value) + " / " + value + '}'; }
/** {@inheritDoc} */ @Override public void visitInvalid(int opcode, int offset, int length) { throw new SimException("invalid opcode " + Hex.u1(opcode)); }
/** {@inheritDoc} */ @Override public String toString() { int value = getIntBits(); return "byte{0x" + Hex.u1(value) + " / " + value + '}'; }
/** {@inheritDoc} */ @Override public void visitInvalid(int opcode, int offset, int length) { throw new SimException("invalid opcode " + Hex.u1(opcode)); }
/** {@inheritDoc} */ @Override public String toString() { int value = getIntBits(); return "byte{0x" + Hex.u1(value) + " / " + value + '}'; }
/** {@inheritDoc} */ @Override public String toString() { int value = getIntBits(); return "byte{0x" + Hex.u1(value) + " / " + value + '}'; }
/** {@inheritDoc} */ @Override public String toString() { int value = getIntBits(); return "byte{0x" + Hex.u1(value) + " / " + value + '}'; }
/** {@inheritDoc} */ @Override public String toString() { int value = getIntBits(); return "byte{0x" + Hex.u1(value) + " / " + value + '}'; }
/** {@inheritDoc} */ public void visitInvalid(int opcode, int offset, int length) { throw new SimException("invalid opcode " + Hex.u1(opcode)); }
/** * Helper for {@link #utf8BytesToString}, which throws the right * exception for a bogus utf-8 byte. * * @param value the byte value * @param offset the file offset * @return never * @throws IllegalArgumentException always thrown */ private static String throwBadUtf8(int value, int offset) { throw new IllegalArgumentException("bad utf-8 byte " + Hex.u1(value) + " at offset " + Hex.u4(offset)); }
/** * Helper for {@link #utf8BytesToString}, which throws the right * exception for a bogus utf-8 byte. * * @param value the byte value * @param offset the file offset * @return never * @throws IllegalArgumentException always thrown */ private static String throwBadUtf8(int value, int offset) { throw new IllegalArgumentException("bad utf-8 byte " + Hex.u1(value) + " at offset " + Hex.u4(offset)); }
/** * Helper for {@link #utf8BytesToString}, which throws the right * exception for a bogus utf-8 byte. * * @param value the byte value * @param offset the file offset * @return never * @throws IllegalArgumentException always thrown */ private static String throwBadUtf8(int value, int offset) { throw new IllegalArgumentException("bad utf-8 byte " + Hex.u1(value) + " at offset " + Hex.u4(offset)); }
/** {@inheritDoc} */ public void visitInvalid(int opcode, int offset, int length) { throw new SimException("invalid opcode " + Hex.u1(opcode)); }
/** {@inheritDoc} */ public void visitInvalid(int opcode, int offset, int length) { throw new SimException("invalid opcode " + Hex.u1(opcode)); }
/** * Helper for {@link #utf8BytesToString}, which throws the right * exception for a bogus utf-8 byte. * * @param value the byte value * @param offset the file offset * @return never * @throws IllegalArgumentException always thrown */ private static String throwBadUtf8(int value, int offset) { throw new IllegalArgumentException("bad utf-8 byte " + Hex.u1(value) + " at offset " + Hex.u4(offset)); }
/** * Helper for {@link #utf8BytesToString}, which throws the right * exception for a bogus utf-8 byte. * * @param value the byte value * @param offset the file offset * @return never * @throws IllegalArgumentException always thrown */ private static String throwBadUtf8(int value, int offset) { throw new IllegalArgumentException("bad utf-8 byte " + Hex.u1(value) + " at offset " + Hex.u4(offset)); }
/** {@inheritDoc} */ public void visitInvalid(int opcode, int offset, int length) { throw new SimException("invalid opcode " + Hex.u1(opcode)); }