lojix/wam_prolog/src/main/com/thesett/aima/logic/fol/wam/optimizer/OptimizeInstructions.java
private boolean isNonArg(WAMInstruction instruction)
    {
        SymbolKey symbolKey = instruction.getSymbolKeyReg1();

        if (symbolKey != null)
        {
            Boolean nonArgPositionOnly = (Boolean) symbolTable.get(symbolKey, SymbolTableKeys.SYMKEY_FUNCTOR_NON_ARG);

            if (TRUE.equals(nonArgPositionOnly))
            {
                return true;
            }
        }

        return false;
    }
private boolean isNonArg(WAMInstruction instruction)
    {
        SymbolKey symbolKey = instruction.getSymbolKeyReg1();

        if (symbolKey != null)
        {
            Boolean nonArgPositionOnly = (Boolean) symbolTable.get(symbolKey, SymbolTableKeys.SYMKEY_FUNCTOR_NON_ARG);

            if (TRUE.equals(nonArgPositionOnly))
            {
                return true;
            }
        }

        return false;
    }
private boolean isNonArg ( WAMInstruction instruction ) { SymbolKey symbolKey = instruction . getSymbolKeyReg1 ( ) ; if ( symbolKey != null ) { Boolean nonArgPositionOnly = ( Boolean ) symbolTable . get ( symbolKey , SymbolTableKeys . SYMKEY_FUNCTOR_NON_ARG ) ; if ( TRUE . equals ( nonArgPositionOnly ) ) { return true ; } } return false ; }
Checks if the term argument to an instruction was in a non-argument position.

@param  instruction The instruction to test.

@return <tt>true</tt> iff the term argument to an instruction was in a non-argument position. <tt>false</tt> will
be returned if this information was not recorded, and cannot be determined.
Checks if the term argument to an instruction was in a non - argument position .