/** * Returns whether there are any more code units to read. This * is analogous to {@code hasNext()} on an interator. */ public boolean hasMore() { return cursor() < array.length; }
/** * Reads a code unit. */ public int read() throws EOFException { try { int value = array[cursor()]; advance(1); return value & 0xffff; } catch (ArrayIndexOutOfBoundsException ex) { throw new EOFException(); } }
/** * Returns whether there are any more code units to read. This * is analogous to {@code hasNext()} on an interator. */ public boolean hasMore() { return cursor() < array.length; }
public void accept(InstructionVisitor iv) throws EOFException { codeIn.reset(); while (codeIn.hasMore()) { int currentAddress = codeIn.cursor(); int opcodeUnit = codeIn.read(); int opcodeForSwitch = Opcodes.extractOpcodeFromUnit(opcodeUnit);
/** * Reads a code unit. */ public int read() throws EOFException { try { int value = array[cursor()]; advance(1); return value & 0xffff; } catch (ArrayIndexOutOfBoundsException ex) { throw new EOFException(); } }
public void accept(InstructionVisitor iv) throws EOFException { codeIn.reset(); while (codeIn.hasMore()) { int currentAddress = codeIn.cursor(); int opcodeUnit = codeIn.read(); int opcodeForSwitch = Opcodes.extractOpcodeFromUnit(opcodeUnit);