Interface LeafExpression

All Superinterfaces:
Constraint, Expression
All Known Implementing Classes:
FixedValue, Variable

public interface LeafExpression extends Constraint
  • Method Details

    • replace

      Description copied from interface: Constraint
      Returns new Constraint with LeafExpressions in this Constraint replaced with values returned from the given function.
      Specified by:
      replace in interface Constraint
      Specified by:
      replace in interface Expression
      Parameters:
      function - returns the LeafExpression to use as a replacement for the LeafExpression it is called with, or null if the original LeafExpression should continue to be used.
      Returns:
      a new Constraint with LeafExpressions in this Constraint replaced with versions returned from function.