public final class Cut extends AbstractPredicateFactory
!
- the "cut".
The "cut", represented as a !
, is a special mechanism which affects how prolog backtracks.
Constructor and Description |
---|
Cut() |
Modifier and Type | Method and Description |
---|---|
protected Predicate |
getPredicate() |
boolean |
isAlwaysCutOnBacktrack()
Will attempting to re-evaluate this implementation always result in a cut?
|
getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicate, getPredicate, getPredicate, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
protected Predicate getPredicate()
getPredicate
in class AbstractPredicateFactory
public boolean isAlwaysCutOnBacktrack()
PredicateFactory
true
if a cut will always be encountered when attempting to re-evaluate, false
otherwiseCopyright © 2024. All rights reserved.