public void onCodeUpdate(WAMResolvingMachineDPI dpi, int start, int length)
    {
        System.out.println("Code updated, " + length + " bytes at " + start + ".");
        tableModel = new TextTableImpl();

        ByteBuffer code = dpi.getCodeBuffer(start, length);

        SizeableList<WAMInstruction> instructions =
            WAMInstruction.disassemble(start, length, code, dpi.getVariableAndFunctorInterner(), dpi);

        int row = 0;

        for (WAMInstruction instruction : instructions)
        {
            if (instruction.getLabel() != null)
            {
                tableModel.put(0, row, instruction.getLabel().toPrettyString());
            }

            tableModel.put(1, row, instruction.toString());
            row++;
        }

        printTable(tableModel);
    }
public void onCodeUpdate ( WAMResolvingMachineDPI dpi , int start , int length ) { System . out . println ( "Code updated, " + length + " bytes at " + start + "." ) ; tableModel = new TextTableImpl ( ) ; ByteBuffer code = dpi . getCodeBuffer ( start , length ) ; SizeableList < WAMInstruction > instructions = WAMInstruction . disassemble ( start , length , code , dpi . getVariableAndFunctorInterner ( ) , dpi ) ; int row = 0 ; for ( WAMInstruction instruction : instructions ) { if ( instruction . getLabel ( ) != null ) { tableModel . put ( 0 , row , instruction . getLabel ( ) . toPrettyString ( ) ) ; } tableModel . put ( 1 , row , instruction . toString ( ) ) ; row ++ ; } printTable ( tableModel ) ; }
{@inheritDoc}