Package org.drools.model.constraints
Class SingleConstraint1<A>
- java.lang.Object
-
- org.drools.model.constraints.AbstractConstraint
-
- org.drools.model.constraints.AbstractSingleConstraint
-
- org.drools.model.constraints.SingleConstraint1<A>
-
- All Implemented Interfaces:
Constraint,ModelComponent,SingleConstraint
public class SingleConstraint1<A> extends AbstractSingleConstraint
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.model.Constraint
Constraint.Type
-
-
Field Summary
-
Fields inherited from class org.drools.model.constraints.AbstractSingleConstraint
predicateInformation
-
Fields inherited from interface org.drools.model.SingleConstraint
FALSE, TRUE
-
-
Constructor Summary
Constructors Constructor Description SingleConstraint1(String exprId, PredicateInformation predicateInformation)This constructor generates a constraint that cannot be evaluated as it lacks the actual predicate The AlphaNode referring this can be shared, as the exprId is provided Currently it's used only with the Alpha Network Compiler, since the code instantiating the actual constraint will be inlined inside the compiled Alpha Network itself.SingleConstraint1(String exprId, Variable<A> variable, Predicate1<A> predicate)SingleConstraint1(Variable<A> variable, Predicate1<A> predicate)SingleConstraint1(Expr1ViewItemImpl<A> expr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PredicateNgetPredicate()Predicate1getPredicate1()Variable[]getVariables()booleanisEqualTo(ModelComponent o)SingleConstraint1<A>negate()SingleConstraint1<A>replaceVariable(Variable oldVar, Variable newVar)-
Methods inherited from class org.drools.model.constraints.AbstractSingleConstraint
fromExpr, getChildren, getExprId, getIndex, getReactiveProps, getReactivityBitMask, negate, predicateInformation, setIndex, setReactivitySpecs, toString
-
Methods inherited from class org.drools.model.constraints.AbstractConstraint
and, cloneConstraint, or, with
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.drools.model.SingleConstraint
getPredicate2, getType, isTemporal
-
-
-
-
Constructor Detail
-
SingleConstraint1
public SingleConstraint1(Variable<A> variable, Predicate1<A> predicate)
-
SingleConstraint1
public SingleConstraint1(String exprId, Variable<A> variable, Predicate1<A> predicate)
-
SingleConstraint1
public SingleConstraint1(String exprId, PredicateInformation predicateInformation)
This constructor generates a constraint that cannot be evaluated as it lacks the actual predicate The AlphaNode referring this can be shared, as the exprId is provided Currently it's used only with the Alpha Network Compiler, since the code instantiating the actual constraint will be inlined inside the compiled Alpha Network itself.
-
SingleConstraint1
public SingleConstraint1(Expr1ViewItemImpl<A> expr)
-
-
Method Detail
-
getVariables
public Variable[] getVariables()
-
getPredicate
public PredicateN getPredicate()
-
getPredicate1
public Predicate1 getPredicate1()
-
isEqualTo
public boolean isEqualTo(ModelComponent o)
-
negate
public SingleConstraint1<A> negate()
-
replaceVariable
public SingleConstraint1<A> replaceVariable(Variable oldVar, Variable newVar)
-
-