Class Flatten
- java.lang.Object
-
- org.projog.core.predicate.AbstractSingleResultPredicate
-
- org.projog.core.predicate.builtin.list.Flatten
-
- All Implemented Interfaces:
KnowledgeBaseConsumer,PredicateFactory
public final class Flatten extends AbstractSingleResultPredicate
flatten(X,Y)- flattens a nested list.Flattens the nested list represented by
Xand attempts to unify it withY.
-
-
Constructor Summary
Constructors Constructor Description Flatten()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanevaluate(Term original, Term expected)private java.util.List<Term>flattenList(Term input)-
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
-
-