Package org.projog.clp
Interface LeafExpression
-
- All Superinterfaces:
Constraint,Expression
- All Known Implementing Classes:
FixedValue,Variable
public interface LeafExpression extends Expression, Constraint
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LeafExpressionreplace(java.util.function.Function<LeafExpression,LeafExpression> function)Returns aExpressionwithLeafExpressions in thisExpressionreplaced with values returned from the given function.-
Methods inherited from interface org.projog.clp.Constraint
enforce, prevent, reify, walk
-
-
-
-
Method Detail
-
replace
LeafExpression replace(java.util.function.Function<LeafExpression,LeafExpression> function)
Description copied from interface:ExpressionReturns aExpressionwithLeafExpressions in thisExpressionreplaced with values returned from the given function.- Specified by:
replacein interfaceConstraint- Specified by:
replacein interfaceExpression- Parameters:
function- returns theLeafExpressionto use as a replacement for theLeafExpressionit is called with, ornullif the originalLeafExpressionshould continue to be used.- Returns:
- a new
ExpressionwithLeafExpressions in thisExpressionreplaced with versions returned fromfunction.
-
-