gnu.prolog.vm.interpreter.instruction
Class ICreateCompoundTerm
java.lang.Object
gnu.prolog.vm.interpreter.instruction.Instruction
gnu.prolog.vm.interpreter.instruction.ICreateCompoundTerm
- All Implemented Interfaces:
- Installable
public class ICreateCompoundTerm
- extends Instruction
create compound term
tag
public CompoundTermTag tag
- position of term in environment
ICreateCompoundTerm
public ICreateCompoundTerm(CompoundTermTag tag)
- a constructor
- Parameters:
tag
-
toString
public String toString()
- convert instruction to string
- Overrides:
toString
in class Object
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