gnu.prolog.vm.buildins.list
Class Predicate_predsort
java.lang.Object
gnu.prolog.vm.ExecuteOnlyCode
gnu.prolog.vm.buildins.list.Predicate_predsort
- All Implemented Interfaces:
- Installable, PrologCode
public class Predicate_predsort
- extends ExecuteOnlyCode
- Author:
- Michiel Hendriks
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPARE_TAG
public static final CompoundTermTag COMPARE_TAG
Predicate_predsort
public Predicate_predsort()
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:
execute
in interface PrologCode
- Specified by:
execute
in class ExecuteOnlyCode
- Parameters:
interpreter
- interpreter in which context code is executedbacktrackMode
- true if predicate is called on backtracking and false otherwiseargs
- arguments of code
- Returns:
- either SUCCESS, SUCCESS_LAST, or FAIL.
- Throws:
PrologException
getComparator
protected Comparator<? super Term> getComparator(Interpreter interpreter,
Term sorter)
throws PrologException
- Returns:
-
- Throws:
PrologException