org.drools.rule.builder.dialect.mvel
Class MVELDialect

java.lang.Object
  extended by org.drools.rule.builder.dialect.mvel.MVELDialect
All Implemented Interfaces:
Externalizable, Serializable, Dialect
Direct Known Subclasses:
ClipsDialect

public class MVELDialect
extends Object
implements Dialect, Externalizable

See Also:
Serialized Form

Field Summary
protected static MVELAccumulateBuilder ACCUMULATE_BUILDER
           
protected static CollectBuilder COLLECT_BUILDER
           
protected static MVELConsequenceBuilder CONSEQUENCE_BUILDER
           
protected static EnabledBuilder ENABLED_BUILDER
           
protected static EntryPointBuilder ENTRY_POINT_BUILDER
           
protected static MVELEvalBuilder EVAL_BUILDER
           
protected static ForallBuilder FORALL_BUILDER
           
protected static MVELFromBuilder FROM_BUILDER
           
protected static JavaFunctionBuilder FUNCTION_BUILDER
           
protected static GroupElementBuilder GE_BUILDER
           
protected static PatternBuilder PATTERN_BUILDER
           
protected  Package pkg
           
protected static MVELPredicateBuilder PREDICATE_BUILDER
           
protected static QueryBuilder QUERY_BUILDER
           
protected  List results
           
protected static MVELReturnValueBuilder RETURN_VALUE_BUILDER
           
protected static SalienceBuilder SALIENCE_BUILDER
           
protected  MemoryResourceReader src
           
 
Constructor Summary
MVELDialect(PackageBuilder builder, PackageRegistry pkgRegistry, Package pkg)
           
MVELDialect(PackageBuilder builder, PackageRegistry pkgRegistry, Package pkg, String id)
           
 
Method Summary
 void addFunction(FunctionDescr functionDescr, TypeResolver typeResolver, org.drools.io.Resource resource)
           
 void addImport(String importEntry)
           
 void addRule(RuleBuildContext context)
           
 void addStaticImport(String staticImportEntry)
           
 AnalysisResult analyzeBlock(PackageBuildContext context, BaseDescr descr, Map interceptors, String text, BoundIdentifiers availableIdentifiers, Map<String,Class<?>> localTypes, String contextIndeifier, Class kcontextClass)
           
 AnalysisResult analyzeBlock(PackageBuildContext context, BaseDescr descr, String text, BoundIdentifiers availableIdentifiers)
           
 AnalysisResult analyzeExpression(PackageBuildContext context, BaseDescr descr, Object content, BoundIdentifiers availableIdentifiers)
           
 AnalysisResult analyzeExpression(PackageBuildContext context, BaseDescr descr, Object content, BoundIdentifiers availableIdentifiers, Map<String,Class<?>> localTypes)
           
 void compileAll()
           
 AccumulateBuilder getAccumulateBuilder()
           
 EngineElementBuilder getBuilder(Class clazz)
           
 Map<Class<?>,EngineElementBuilder> getBuilders()
           
 ConsequenceBuilder getConsequenceBuilder()
           
 EnabledBuilder getEnabledBuilder()
           
 EntryPointBuilder getEntryPointBuilder()
           
 RuleConditionBuilder getEvalBuilder()
           
 String getExpressionDialectName()
           
 PredicateBuilder getExpressionPredicateBuilder()
           
 FromBuilder getFromBuilder()
           
 String getId()
           
 Map getInterceptors()
           
 MVELCompilationUnit getMVELCompilationUnit(String expression, AnalysisResult analysis, Declaration[] previousDeclarations, Declaration[] localDeclarations, Map<String,Class<?>> otherInputVariables, PackageBuildContext context, String contextIndeifier, Class kcontextClass)
           
 PackageRegistry getPackageRegistry()
           
 PatternBuilder getPatternBuilder()
           
 PredicateBuilder getPredicateBuilder()
           
 QueryBuilder getQueryBuilder()
           
 List getResults()
           
 ReturnValueBuilder getReturnValueBuilder()
           
 RuleClassBuilder getRuleClassBuilder()
           
 SalienceBuilder getSalienceBuilder()
           
 TypeResolver getTypeResolver()
           
 void init(ProcessDescr processDescr)
           
 void init(RuleDescr ruleDescr)
           
static void initBuilder()
           
 boolean isStrictMode()
           
 void postCompileAddFunction(FunctionDescr functionDescr, TypeResolver typeResolver)
           
 void preCompileAddFunction(FunctionDescr functionDescr, TypeResolver typeResolver)
           
 void readExternal(ObjectInput in)
           
 void setLanguageLevel(int languageLevel)
           
 void setStrictMode(boolean strictMode)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATTERN_BUILDER

protected static final PatternBuilder PATTERN_BUILDER

QUERY_BUILDER

protected static final QueryBuilder QUERY_BUILDER

ACCUMULATE_BUILDER

protected static final MVELAccumulateBuilder ACCUMULATE_BUILDER

SALIENCE_BUILDER

protected static final SalienceBuilder SALIENCE_BUILDER

ENABLED_BUILDER

protected static final EnabledBuilder ENABLED_BUILDER

EVAL_BUILDER

protected static final MVELEvalBuilder EVAL_BUILDER

PREDICATE_BUILDER

protected static final MVELPredicateBuilder PREDICATE_BUILDER

RETURN_VALUE_BUILDER

protected static final MVELReturnValueBuilder RETURN_VALUE_BUILDER

CONSEQUENCE_BUILDER

protected static final MVELConsequenceBuilder CONSEQUENCE_BUILDER

FROM_BUILDER

protected static final MVELFromBuilder FROM_BUILDER

FUNCTION_BUILDER

protected static final JavaFunctionBuilder FUNCTION_BUILDER

COLLECT_BUILDER

protected static final CollectBuilder COLLECT_BUILDER

FORALL_BUILDER

protected static final ForallBuilder FORALL_BUILDER

ENTRY_POINT_BUILDER

protected static final EntryPointBuilder ENTRY_POINT_BUILDER

GE_BUILDER

protected static final GroupElementBuilder GE_BUILDER

results

protected List results

src

protected MemoryResourceReader src

pkg

protected Package pkg
Constructor Detail

MVELDialect

public MVELDialect(PackageBuilder builder,
                   PackageRegistry pkgRegistry,
                   Package pkg)

MVELDialect

public MVELDialect(PackageBuilder builder,
                   PackageRegistry pkgRegistry,
                   Package pkg,
                   String id)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

setLanguageLevel

public void setLanguageLevel(int languageLevel)

initBuilder

public static void initBuilder()

init

public void init(RuleDescr ruleDescr)
Specified by:
init in interface Dialect

init

public void init(ProcessDescr processDescr)
Specified by:
init in interface Dialect

getExpressionDialectName

public String getExpressionDialectName()
Specified by:
getExpressionDialectName in interface Dialect

addRule

public void addRule(RuleBuildContext context)
Specified by:
addRule in interface Dialect

addFunction

public void addFunction(FunctionDescr functionDescr,
                        TypeResolver typeResolver,
                        org.drools.io.Resource resource)
Specified by:
addFunction in interface Dialect

preCompileAddFunction

public void preCompileAddFunction(FunctionDescr functionDescr,
                                  TypeResolver typeResolver)
Specified by:
preCompileAddFunction in interface Dialect

postCompileAddFunction

public void postCompileAddFunction(FunctionDescr functionDescr,
                                   TypeResolver typeResolver)
Specified by:
postCompileAddFunction in interface Dialect

addImport

public void addImport(String importEntry)
Specified by:
addImport in interface Dialect

addStaticImport

public void addStaticImport(String staticImportEntry)
Specified by:
addStaticImport in interface Dialect

isStrictMode

public boolean isStrictMode()

setStrictMode

public void setStrictMode(boolean strictMode)

compileAll

public void compileAll()
Specified by:
compileAll in interface Dialect

analyzeExpression

public AnalysisResult analyzeExpression(PackageBuildContext context,
                                        BaseDescr descr,
                                        Object content,
                                        BoundIdentifiers availableIdentifiers)
Specified by:
analyzeExpression in interface Dialect

analyzeExpression

public AnalysisResult analyzeExpression(PackageBuildContext context,
                                        BaseDescr descr,
                                        Object content,
                                        BoundIdentifiers availableIdentifiers,
                                        Map<String,Class<?>> localTypes)

analyzeBlock

public AnalysisResult analyzeBlock(PackageBuildContext context,
                                   BaseDescr descr,
                                   String text,
                                   BoundIdentifiers availableIdentifiers)
Specified by:
analyzeBlock in interface Dialect

analyzeBlock

public AnalysisResult analyzeBlock(PackageBuildContext context,
                                   BaseDescr descr,
                                   Map interceptors,
                                   String text,
                                   BoundIdentifiers availableIdentifiers,
                                   Map<String,Class<?>> localTypes,
                                   String contextIndeifier,
                                   Class kcontextClass)

getMVELCompilationUnit

public MVELCompilationUnit getMVELCompilationUnit(String expression,
                                                  AnalysisResult analysis,
                                                  Declaration[] previousDeclarations,
                                                  Declaration[] localDeclarations,
                                                  Map<String,Class<?>> otherInputVariables,
                                                  PackageBuildContext context,
                                                  String contextIndeifier,
                                                  Class kcontextClass)

getBuilder

public EngineElementBuilder getBuilder(Class clazz)
Specified by:
getBuilder in interface Dialect

getBuilders

public Map<Class<?>,EngineElementBuilder> getBuilders()
Specified by:
getBuilders in interface Dialect

getPatternBuilder

public PatternBuilder getPatternBuilder()
Specified by:
getPatternBuilder in interface Dialect

getQueryBuilder

public QueryBuilder getQueryBuilder()
Specified by:
getQueryBuilder in interface Dialect

getAccumulateBuilder

public AccumulateBuilder getAccumulateBuilder()
Specified by:
getAccumulateBuilder in interface Dialect

getConsequenceBuilder

public ConsequenceBuilder getConsequenceBuilder()
Specified by:
getConsequenceBuilder in interface Dialect

getEvalBuilder

public RuleConditionBuilder getEvalBuilder()
Specified by:
getEvalBuilder in interface Dialect

getFromBuilder

public FromBuilder getFromBuilder()
Specified by:
getFromBuilder in interface Dialect

getEntryPointBuilder

public EntryPointBuilder getEntryPointBuilder()
Specified by:
getEntryPointBuilder in interface Dialect

getPredicateBuilder

public PredicateBuilder getPredicateBuilder()
Specified by:
getPredicateBuilder in interface Dialect

getExpressionPredicateBuilder

public PredicateBuilder getExpressionPredicateBuilder()

getSalienceBuilder

public SalienceBuilder getSalienceBuilder()
Specified by:
getSalienceBuilder in interface Dialect

getEnabledBuilder

public EnabledBuilder getEnabledBuilder()
Specified by:
getEnabledBuilder in interface Dialect

getResults

public List getResults()
Specified by:
getResults in interface Dialect

getReturnValueBuilder

public ReturnValueBuilder getReturnValueBuilder()
Specified by:
getReturnValueBuilder in interface Dialect

getRuleClassBuilder

public RuleClassBuilder getRuleClassBuilder()
Specified by:
getRuleClassBuilder in interface Dialect

getTypeResolver

public TypeResolver getTypeResolver()
Specified by:
getTypeResolver in interface Dialect

getInterceptors

public Map getInterceptors()

getId

public String getId()
Specified by:
getId in interface Dialect

getPackageRegistry

public PackageRegistry getPackageRegistry()
Specified by:
getPackageRegistry in interface Dialect


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.