Class GroupElementBuilder.AndBuilder

java.lang.Object
org.drools.core.reteoo.builder.GroupElementBuilder.AndBuilder
All Implemented Interfaces:
ReteooComponentBuilder
Enclosing class:
GroupElementBuilder

public static class GroupElementBuilder.AndBuilder extends Object implements ReteooComponentBuilder
  • Constructor Details

    • AndBuilder

      public AndBuilder()
  • Method Details

    • build

      public void build(BuildContext context, BuildUtils utils, RuleConditionElement rce)
      Description copied from interface: ReteooComponentBuilder
      Builds and attach if needed the given RuleConditionalElement
      Specified by:
      build in interface ReteooComponentBuilder
      Parameters:
      context - current build context
    • buildTupleSource

      public static void buildTupleSource(BuildContext context, BuildUtils utils, boolean terminal)
    • buildJoinNode

      public static void buildJoinNode(BuildContext context, BuildUtils utils)
    • requiresLeftActivation

      public boolean requiresLeftActivation(BuildUtils utils, RuleConditionElement rce)
      Description copied from interface: ReteooComponentBuilder
      A 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:
      requiresLeftActivation in interface ReteooComponentBuilder
      rce - the element to be built
      Returns:
      true if a tuple source is required, false otherwise.