Class Delete
- java.lang.Object
-
- org.projog.core.predicate.AbstractSingleResultPredicate
-
- org.projog.core.predicate.builtin.list.Delete
-
- All Implemented Interfaces:
KnowledgeBaseConsumer,PredicateFactory
public final class Delete extends AbstractSingleResultPredicate
delete(X,Y,Z)- remove all occurrences of a term from a list.Removes all occurrences of the term
Yin the list represented byXand attempts to unify the result withZ. Strict term equality is used to identify occurrences.
-
-
Constructor Summary
Constructors Constructor Description Delete()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanevaluate(Term input, Term element, Term output)-
Methods inherited from class org.projog.core.predicate.AbstractSingleResultPredicate
evaluate, evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.projog.core.predicate.PredicateFactory
isAlwaysCutOnBacktrack
-
-
-
-
Method Detail
-
evaluate
protected boolean evaluate(Term input, Term element, Term output)
- Overrides:
evaluatein classAbstractSingleResultPredicate
-
-