gnu.prolog.vm.buildins.debug
Class Predicate_spy
java.lang.Object
   gnu.prolog.vm.ExecuteOnlyCode
gnu.prolog.vm.ExecuteOnlyCode
       gnu.prolog.vm.buildins.debug.Predicate_spy
gnu.prolog.vm.buildins.debug.Predicate_spy
- All Implemented Interfaces: 
- Installable, PrologCode
- public class Predicate_spy 
- extends ExecuteOnlyCode
Set a trace point
- Author:
- Michiel Hendriks
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Predicate_spy
public Predicate_spy()
getTraceLevel
public static EnumSet<Tracer.TraceLevel> getTraceLevel(Term term)
                                                throws PrologException
- 
- Parameters:
- term-
- Returns:
- set of TraceLevels for the term
- Throws:
- PrologException
 
getTag
public static CompoundTermTag getTag(Term term)
                              throws PrologException
- 
- Parameters:
- term-
- Returns:
- the CompoundTermTag for the term
- Throws:
- PrologException
 
execute
public int execute(Interpreter interpreter,
                   boolean backtrackMode,
                   Term[] args)
            throws PrologException
- Description copied from interface: PrologCode
- this method is used for execution of code
 
- 
- Specified by:
- executein interface- PrologCode
- Specified by:
- executein class- ExecuteOnlyCode
 
- 
- Parameters:
- interpreter- interpreter in which context code is executed
- backtrackMode- true if predicate is called on backtracking and false otherwise
- args- arguments of code
- Returns:
- either SUCCESS, SUCCESS_LAST, or FAIL.
- Throws:
- PrologException
 
setSpyPoint
protected void setSpyPoint(Interpreter interpreter,
                           CompoundTermTag tag,
                           Term arg)
                    throws PrologException
- 
- Throws:
- PrologException