org.drools.rule.builder
Class PatternBuilder
java.lang.Object
org.drools.rule.builder.PatternBuilder
- All Implemented Interfaces:
- EngineElementBuilder, RuleConditionBuilder
public class PatternBuilder
- extends Object
- implements RuleConditionBuilder
A builder for patterns
Method Summary |
RuleConditionElement |
build(RuleBuildContext context,
BaseDescr descr)
|
RuleConditionElement |
build(RuleBuildContext context,
BaseDescr descr,
Pattern prefixPattern)
Build a pattern for the given descriptor in the current
context and using the given utils object |
static InternalReadAccessor |
getFieldReadAccessor(RuleBuildContext context,
BaseDescr descr,
ObjectType objectType,
String fieldName,
AcceptsReadAccessor target,
boolean reportError)
|
static void |
registerReadAccessor(RuleBuildContext context,
ObjectType objectType,
String fieldName,
AcceptsReadAccessor target)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatternBuilder
public PatternBuilder()
build
public RuleConditionElement build(RuleBuildContext context,
BaseDescr descr)
- Specified by:
build
in interface RuleConditionBuilder
build
public RuleConditionElement build(RuleBuildContext context,
BaseDescr descr,
Pattern prefixPattern)
- Build a pattern for the given descriptor in the current
context and using the given utils object
- Specified by:
build
in interface RuleConditionBuilder
- Parameters:
context
- descr
- prefixPattern
-
- Returns:
registerReadAccessor
public static void registerReadAccessor(RuleBuildContext context,
ObjectType objectType,
String fieldName,
AcceptsReadAccessor target)
getFieldReadAccessor
public static InternalReadAccessor getFieldReadAccessor(RuleBuildContext context,
BaseDescr descr,
ObjectType objectType,
String fieldName,
AcceptsReadAccessor target,
boolean reportError)
Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.