gnu.prolog.vm.interpreter.instruction
Class ICut
java.lang.Object
   gnu.prolog.vm.interpreter.instruction.Instruction
gnu.prolog.vm.interpreter.instruction.Instruction
       gnu.prolog.vm.interpreter.instruction.ICut
gnu.prolog.vm.interpreter.instruction.ICut
- All Implemented Interfaces: 
- Installable
- public class ICut 
- extends Instruction
cut instruction
| Field Summary | 
|  int | environmentIndexindex in environment where cut position is kept, cut position is kept as
 JavaObjectTerm containing BacktrackInfo until which all should be be popped
 | 
 
 
| Constructor Summary | 
| ICut(int environmentIndex)a constructor
 | 
 
 
 
 
environmentIndex
public int environmentIndex
- index in environment where cut position is kept, cut position is kept as
 JavaObjectTerm containing BacktrackInfo until which all should be be popped
 
 
ICut
public ICut(int environmentIndex)
- a constructor
 
- Parameters:
- environmentIndex-
 
toString
public String toString()
- convert instruction to string
 
- 
- Overrides:
- toStringin class- Object
 
- 
 
execute
public int execute(ExecutionState state,
                   BacktrackInfo bi)
            throws PrologException
- execute call instruction within specified sate
 
- 
- Specified by:
- executein 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