Class ExpressionRestriction

java.lang.Object
nz.org.riskscape.engine.restriction.ExpressionRestriction
All Implemented Interfaces:
nz.org.riskscape.engine.restriction.Restriction

public class ExpressionRestriction extends Object implements nz.org.riskscape.engine.restriction.Restriction
  • Field Summary

    Fields inherited from interface nz.org.riskscape.engine.restriction.Restriction

    NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExpressionRestriction(nz.org.riskscape.rl.ast.Expression expression, nz.org.riskscape.engine.rl.ExpressionRealizer expressionRealizer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    nz.org.riskscape.rl.ast.Expression
     
    Predicate<nz.org.riskscape.engine.Tuple>
     
    List<nz.org.riskscape.problem.Problem>
    validate(nz.org.riskscape.engine.types.Struct type)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface nz.org.riskscape.engine.restriction.Restriction

    restrictType
  • Constructor Details

    • ExpressionRestriction

      public ExpressionRestriction(nz.org.riskscape.rl.ast.Expression expression, nz.org.riskscape.engine.rl.ExpressionRealizer expressionRealizer)
  • Method Details

    • getPredicate

      public Predicate<nz.org.riskscape.engine.Tuple> getPredicate()
      Specified by:
      getPredicate in interface nz.org.riskscape.engine.restriction.Restriction
    • validate

      public List<nz.org.riskscape.problem.Problem> validate(nz.org.riskscape.engine.types.Struct type)
      Specified by:
      validate in interface nz.org.riskscape.engine.restriction.Restriction
    • getExpression

      public nz.org.riskscape.rl.ast.Expression getExpression()