Class WriteCanonical
- java.lang.Object
-
- org.projog.core.predicate.AbstractSingleResultPredicate
-
- org.projog.core.predicate.builtin.io.WriteCanonical
-
- All Implemented Interfaces:
KnowledgeBaseConsumer,PredicateFactory
public final class WriteCanonical extends AbstractSingleResultPredicate
write_canonical(X)- writes a term to the output stream.Writes the term
Xto the current output stream.write_canonicaldoes not take account of current operator declarations - thus any structures are printed out with the functor first and the arguments in brackets.Succeeds only once.
-
-
Constructor Summary
Constructors Constructor Description WriteCanonical()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanevaluate(Term arg)-
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 arg)
- Overrides:
evaluatein classAbstractSingleResultPredicate
-
-