org.drools.rule.builder
Class ConstraintBuilder
java.lang.Object
org.drools.rule.builder.ConstraintBuilder
public class ConstraintBuilder
- extends Object
|
Method Summary |
static MVELCompilationUnit |
buildCompilationUnit(RuleBuildContext context,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
PredicateDescr predicateDescr,
AnalysisResult analysis)
|
static MVELCompilationUnit |
buildCompilationUnit(RuleBuildContext context,
Pattern pattern,
String expression)
|
static Constraint |
buildLiteralConstraint(RuleBuildContext context,
Pattern pattern,
ValueType vtype,
FieldValue field,
String expression,
String leftValue,
String operator,
String rightValue,
InternalReadAccessor extractor,
LiteralRestrictionDescr restrictionDescr)
|
static Evaluator |
buildLiteralEvaluator(RuleBuildContext context,
InternalReadAccessor extractor,
LiteralRestrictionDescr literalRestrictionDescr,
ValueType vtype)
|
static LiteralRestriction |
buildLiteralRestriction(RuleBuildContext context,
InternalReadAccessor extractor,
LiteralRestrictionDescr literalRestrictionDescr,
FieldValue field,
ValueType vtype)
|
static Constraint |
buildVariableConstraint(RuleBuildContext context,
Pattern pattern,
String expression,
Declaration[] declarations,
String leftValue,
String operator,
String rightValue,
InternalReadAccessor extractor,
Restriction restriction)
|
static Evaluator |
getEvaluator(RuleBuildContext context,
BaseDescr descr,
ValueType valueType,
String evaluatorString,
boolean isNegated,
String parameters,
EvaluatorDefinition.Target left,
EvaluatorDefinition.Target right)
|
static EvaluatorDefinition.Target |
getRightTarget(InternalReadAccessor extractor)
|
static boolean |
isMvelOperator(String operator)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USE_MVEL_EXPRESSION
public static final boolean USE_MVEL_EXPRESSION
- See Also:
- Constant Field Values
ConstraintBuilder
public ConstraintBuilder()
isMvelOperator
public static boolean isMvelOperator(String operator)
buildVariableConstraint
public static Constraint buildVariableConstraint(RuleBuildContext context,
Pattern pattern,
String expression,
Declaration[] declarations,
String leftValue,
String operator,
String rightValue,
InternalReadAccessor extractor,
Restriction restriction)
buildLiteralConstraint
public static Constraint buildLiteralConstraint(RuleBuildContext context,
Pattern pattern,
ValueType vtype,
FieldValue field,
String expression,
String leftValue,
String operator,
String rightValue,
InternalReadAccessor extractor,
LiteralRestrictionDescr restrictionDescr)
buildLiteralRestriction
public static LiteralRestriction buildLiteralRestriction(RuleBuildContext context,
InternalReadAccessor extractor,
LiteralRestrictionDescr literalRestrictionDescr,
FieldValue field,
ValueType vtype)
buildLiteralEvaluator
public static Evaluator buildLiteralEvaluator(RuleBuildContext context,
InternalReadAccessor extractor,
LiteralRestrictionDescr literalRestrictionDescr,
ValueType vtype)
getRightTarget
public static EvaluatorDefinition.Target getRightTarget(InternalReadAccessor extractor)
getEvaluator
public static Evaluator getEvaluator(RuleBuildContext context,
BaseDescr descr,
ValueType valueType,
String evaluatorString,
boolean isNegated,
String parameters,
EvaluatorDefinition.Target left,
EvaluatorDefinition.Target right)
buildCompilationUnit
public static MVELCompilationUnit buildCompilationUnit(RuleBuildContext context,
Pattern pattern,
String expression)
buildCompilationUnit
public static MVELCompilationUnit buildCompilationUnit(RuleBuildContext context,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
PredicateDescr predicateDescr,
AnalysisResult analysis)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.