Package org.drools.core.reteoo.builder
Class GroupElementBuilder
- java.lang.Object
-
- org.drools.core.reteoo.builder.GroupElementBuilder
-
- All Implemented Interfaces:
ReteooComponentBuilder
public class GroupElementBuilder extends java.lang.Object implements ReteooComponentBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupElementBuilder.AndBuilderstatic classGroupElementBuilder.ExistsBuilderstatic classGroupElementBuilder.NotBuilderstatic classGroupElementBuilder.OrBuilder
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<GroupElement.Type,ReteooComponentBuilder>geBuilders
-
Constructor Summary
Constructors Constructor Description GroupElementBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuild(BuildContext context, BuildUtils utils, RuleConditionElement rce)Builds and attach if needed the given RuleConditionalElementbooleanrequiresLeftActivation(BuildUtils utils, RuleConditionElement rce)A boolean function that indicates if the builder requires a previous left (tuple) activation in order to corretly build the given component.
-
-
-
Field Detail
-
geBuilders
protected final java.util.Map<GroupElement.Type,ReteooComponentBuilder> geBuilders
-
-
Method Detail
-
build
public void build(BuildContext context, BuildUtils utils, RuleConditionElement rce)
Description copied from interface:ReteooComponentBuilderBuilds and attach if needed the given RuleConditionalElement- Specified by:
buildin interfaceReteooComponentBuilder- Parameters:
context- current build context
-
requiresLeftActivation
public boolean requiresLeftActivation(BuildUtils utils, RuleConditionElement rce)
Description copied from interface:ReteooComponentBuilderA boolean function that indicates if the builder requires a previous left (tuple) activation in order to corretly build the given component. In other words, if it returns true and no previous TupleSource is already created, an InitialFact pattern must be added with appropriate left input adapter for the network to be correctly built. For instance, NOT / EXISTS / ACCUMULATE are examples of builders that must return true for this method, while PATTERN must return false.- Specified by:
requiresLeftActivationin interfaceReteooComponentBuilderrce- the element to be built- Returns:
- true if a tuple source is required, false otherwise.
-
-