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
-
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
predicateInformationFields inherited from interface org.drools.model.SingleConstraint
FALSE, TRUE -
Constructor Summary
ConstructorsConstructorDescriptionSingleConstraint1(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
Modifier and TypeMethodDescriptionVariable[]booleannegate()replaceVariable(Variable oldVar, Variable newVar) Methods inherited from class org.drools.model.constraints.AbstractSingleConstraint
fromExpr, getChildren, getExprId, getIndex, getReactiveProps, getReactivityBitMask, negate, predicateInformation, setIndex, setReactivitySpecs, toStringMethods inherited from class org.drools.model.constraints.AbstractConstraint
and, cloneConstraint, or, withMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.drools.model.SingleConstraint
getPredicate2, getPredicate3, getPredicate4, getPredicate5, getType, isTemporal
-
Constructor Details
-
SingleConstraint1
-
SingleConstraint1
-
SingleConstraint1
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
-
-
Method Details
-
getVariables
-
getPredicate
-
getPredicate1
-
isEqualTo
-
negate
-
replaceVariable
-