gnu.prolog.vm.interpreter.instruction
Class IPushArgument
java.lang.Object
gnu.prolog.vm.interpreter.instruction.Instruction
gnu.prolog.vm.interpreter.instruction.IPushArgument
- All Implemented Interfaces:
- Installable
public class IPushArgument
- extends Instruction
push argument of execution state
Constructor Summary |
IPushArgument(int argumentPosition)
a constructor |
argumentPosition
public int argumentPosition
- position of term in environment
IPushArgument
public IPushArgument(int argumentPosition)
- a constructor
- Parameters:
argumentPosition
-
execute
public int execute(ExecutionState state,
BacktrackInfo bi)
throws PrologException
- execute call instruction within specified sate
- Specified by:
execute
in class Instruction
- Parameters:
state
- state within which instruction will be executed
- Returns:
- instruction to caller how to execute next instruction
- Throws:
PrologException
- if code is throwing prolog exception
toString
public String toString()
- convert instruction to string
- Overrides:
toString
in class Object