++numGood; lineNumberMap.put(handle, new LineNumber(bytecodeOffset, sourceLine)); handle = handle.getNext(); ++numBytecodes;
/** * Construct object from file stream. * @param name_index Index of name * @param length Content length in bytes * @param file Input stream * @throws IOException * @param constant_pool Array of constants */ LineNumberTable(int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException { this(name_index, length, (LineNumber[])null, constant_pool); line_number_table_length = (file.readUnsignedShort()); line_number_table = new LineNumber[line_number_table_length]; for(int i=0; i < line_number_table_length; i++) line_number_table[i] = new LineNumber(file); } /**
/** * Construct object from input stream. * @param name_index Index of name * @param length Content length in bytes * @param input Input stream * @param constant_pool Array of constants * @throws IOEXception if an I/O Exception occurs in readUnsignedShort */ LineNumberTable(final int name_index, final int length, final DataInput input, final ConstantPool constant_pool) throws IOException { this(name_index, length, (LineNumber[]) null, constant_pool); final int line_number_table_length = input.readUnsignedShort(); line_number_table = new LineNumber[line_number_table_length]; for (int i = 0; i < line_number_table_length; i++) { line_number_table[i] = new LineNumber(input); } }
/** * Get LineNumber attribute . * * This relies on that the instruction list has already been dumped to byte code or * or that the `setPositions' methods has been called for the instruction list. */ public LineNumber getLineNumber() { return new LineNumber(ih.getPosition(), src_line); }
/** * Get LineNumber attribute . * * This relies on that the instruction list has already been dumped to byte code or * or that the `setPositions' methods has been called for the instruction list. */ public LineNumber getLineNumber() { return new LineNumber(ih.getPosition(), src_line); }
++numGood; lineNumberMap.put(handle, new LineNumber(bytecodeOffset, sourceLine)); handle = handle.getNext(); ++numBytecodes;