public class PatternBuilder extends Object implements ReteooComponentBuilder
Constructor and Description |
---|
PatternBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
attachAlphaNodes(BuildContext context,
BuildUtils utils,
Pattern pattern,
List<AlphaNodeFieldConstraint> alphaConstraints) |
void |
build(BuildContext context,
BuildUtils utils,
RuleConditionElement rce)
Builds and attach if needed the given RuleConditionalElement
|
protected void |
buildAlphaNodeChain(BuildContext context,
BuildUtils utils,
Pattern pattern,
List<AlphaNodeFieldConstraint> alphaConstraints) |
protected void |
linkAlphaConstraint(AlphaNodeFieldConstraint constraint,
List<AlphaNodeFieldConstraint> alphaConstraints) |
protected void |
linkBetaConstraint(BetaNodeFieldConstraint constraint,
List<BetaNodeFieldConstraint> betaConstraints) |
boolean |
requiresLeftActivation(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.
|
public void build(BuildContext context, BuildUtils utils, RuleConditionElement rce)
ReteooComponentBuilder
build
in interface ReteooComponentBuilder
context
- current build contextprotected void linkBetaConstraint(BetaNodeFieldConstraint constraint, List<BetaNodeFieldConstraint> betaConstraints)
protected void linkAlphaConstraint(AlphaNodeFieldConstraint constraint, List<AlphaNodeFieldConstraint> alphaConstraints)
public void attachAlphaNodes(BuildContext context, BuildUtils utils, Pattern pattern, List<AlphaNodeFieldConstraint> alphaConstraints) throws InvalidPatternException
InvalidPatternException
protected void buildAlphaNodeChain(BuildContext context, BuildUtils utils, Pattern pattern, List<AlphaNodeFieldConstraint> alphaConstraints)
public boolean requiresLeftActivation(BuildUtils utils, RuleConditionElement rce)
ReteooComponentBuilder
requiresLeftActivation
in interface ReteooComponentBuilder
rce
- the element to be builtCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.