public boolean isConstant ( WAMInstruction instruction ) { Integer name = instruction . getFunctorNameReg1 ( ) ; if ( name != null ) { FunctorName functorName = interner . getDeinternedFunctorName ( name ) ; if ( functorName . getArity ( ) == 0 ) { return true ; } } return false ; }
Checks if the term argument to an instruction was a constant .