Package org.drools.model.patterns
Class PatternImpl<T>
java.lang.Object
org.drools.model.patterns.AbstractSinglePattern
org.drools.model.patterns.PatternImpl<T>
- All Implemented Interfaces:
Condition,ModelComponent,Pattern<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.drools.model.Condition
Condition.Type -
Constructor Summary
ConstructorsConstructorDescriptionPatternImpl(Variable<T> variable) PatternImpl(Variable<T> variable, Condition.Type type) PatternImpl(Variable<T> variable, Constraint constraint) PatternImpl(Variable<T> variable, Constraint constraint, List<Binding> bindings) PatternImpl(Variable<T> variable, Constraint constraint, List<Binding> bindings, Condition.Type type) PatternImpl(Variable<T> variable, Constraint constraint, Condition.Type type) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBinding(Binding binding) voidaddConstraint(Constraint constraint) voidaddWatchedProps(String[] props) Variable<?>[]Variable[]getType()String[]booleanbooleanbooleannegate()voidsetPassive(boolean passive) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.drools.model.Condition
getSubConditionsMethods inherited from interface org.drools.model.Pattern
getPatternClassMetadata
-
Constructor Details
-
PatternImpl
-
PatternImpl
-
PatternImpl
-
PatternImpl
-
PatternImpl
-
PatternImpl
public PatternImpl(Variable<T> variable, Constraint constraint, List<Binding> bindings, Condition.Type type)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceCondition- Overrides:
getTypein classAbstractSinglePattern
-
getPatternVariable
- Specified by:
getPatternVariablein interfacePattern<T>
-
getBoundVariables
- Specified by:
getBoundVariablesin interfaceCondition
-
getInputVariables
- Specified by:
getInputVariablesin interfacePattern<T>
-
getConstraint
- Specified by:
getConstraintin interfacePattern<T>
-
hasConstraints
public boolean hasConstraints() -
addConstraint
-
addBinding
-
getBindings
- Specified by:
getBindingsin interfacePattern<T>
-
addWatchedProps
-
getWatchedProps
- Specified by:
getWatchedPropsin interfacePattern<T>
-
isPassive
public boolean isPassive() -
setPassive
public void setPassive(boolean passive) -
isEqualTo
- Specified by:
isEqualToin interfaceModelComponent
-
negate
-
toString
-
cloneCondition
- Specified by:
cloneConditionin interfaceCondition
-