lojix/wam_prolog/src/main/com/thesett/aima/logic/fol/wam/machine/WAMResolvingMachine.java
public void emmitCode(WAMCompiledQuery query) throws LinkageException
    {
        // Keep track of the offset into which the code was loaded.
        int entryPoint = codeBuffer.position();
        int length = (int) query.sizeof();

        // If the code is for a program clause, store the programs entry point in the call table.
        WAMCallPoint callPoint = new WAMCallPoint(entryPoint, length, -1);

        // Emmit code for the clause into this machine.
        query.emmitCode(codeBuffer, this, callPoint);

        // Notify the native machine of the addition of new code.
        codeAdded(codeBuffer, entryPoint, length);

        // Notify any attached DPI monitor of the addition of new code.
        if (monitor != null)
        {
            monitor.onCodeUpdate(this, entryPoint, length);
        }
    }
public void emmitCode(WAMCompiledQuery query) throws LinkageException
    {
        // Keep track of the offset into which the code was loaded.
        int entryPoint = codeBuffer.position();
        int length = (int) query.sizeof();

        // If the code is for a program clause, store the programs entry point in the call table.
        WAMCallPoint callPoint = new WAMCallPoint(entryPoint, length, -1);

        // Emmit code for the clause into this machine.
        query.emmitCode(codeBuffer, this, callPoint);

        // Notify the native machine of the addition of new code.
        codeAdded(codeBuffer, entryPoint, length);

        // Notify any attached DPI monitor of the addition of new code.
        if (monitor != null)
        {
            monitor.onCodeUpdate(this, entryPoint, length);
        }
    }
{@inheritDoc}