public class MVELDialect extends Object implements Dialect, Externalizable
Constructor and Description |
---|
MVELDialect(ClassLoader rootClassLoader,
KnowledgeBuilderConfigurationImpl pkgConf,
PackageRegistry pkgRegistry,
org.drools.core.definitions.InternalKnowledgePackage pkg) |
MVELDialect(ClassLoader rootClassLoader,
KnowledgeBuilderConfigurationImpl pkgConf,
PackageRegistry pkgRegistry,
org.drools.core.definitions.InternalKnowledgePackage pkg,
String id) |
protected static final PatternBuilder PATTERN_BUILDER
protected static final QueryBuilder QUERY_BUILDER
protected static final MVELAccumulateBuilder ACCUMULATE_BUILDER
protected static final SalienceBuilder SALIENCE_BUILDER
protected static final EnabledBuilder ENABLED_BUILDER
protected static final MVELEvalBuilder EVAL_BUILDER
protected static final MVELReturnValueBuilder RETURN_VALUE_BUILDER
protected static final MVELConsequenceBuilder CONSEQUENCE_BUILDER
protected static final MVELFromBuilder FROM_BUILDER
protected static final JavaFunctionBuilder FUNCTION_BUILDER
protected static final CollectBuilder COLLECT_BUILDER
protected static final ForallBuilder FORALL_BUILDER
protected static final EntryPointBuilder ENTRY_POINT_BUILDER
protected static final WindowReferenceBuilder WINDOW_REFERENCE_BUILDER
protected static final GroupElementBuilder GE_BUILDER
protected static final NamedConsequenceBuilder NAMED_CONSEQUENCE_BUILDER
protected static final ConditionalBranchBuilder CONDITIONAL_BRANCH_BUILDER
protected List<org.kie.internal.builder.KnowledgeBuilderResult> results
protected MemoryResourceReader src
protected org.drools.core.definitions.InternalKnowledgePackage pkg
public MVELDialect(ClassLoader rootClassLoader, KnowledgeBuilderConfigurationImpl pkgConf, PackageRegistry pkgRegistry, org.drools.core.definitions.InternalKnowledgePackage pkg)
public MVELDialect(ClassLoader rootClassLoader, KnowledgeBuilderConfigurationImpl pkgConf, PackageRegistry pkgRegistry, org.drools.core.definitions.InternalKnowledgePackage pkg, String id)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void setLanguageLevel(int languageLevel)
public static void initBuilder()
public static void reinitBuilder()
public void init(ProcessDescr processDescr)
public String getExpressionDialectName()
getExpressionDialectName
in interface Dialect
public void addRule(RuleBuildContext context)
public void addFunction(FunctionDescr functionDescr, org.drools.core.base.TypeResolver typeResolver, org.kie.api.io.Resource resource)
addFunction
in interface Dialect
public void preCompileAddFunction(FunctionDescr functionDescr, org.drools.core.base.TypeResolver typeResolver)
preCompileAddFunction
in interface Dialect
public void postCompileAddFunction(FunctionDescr functionDescr, org.drools.core.base.TypeResolver typeResolver)
postCompileAddFunction
in interface Dialect
public void addImport(ImportDescr importDescr)
public void addStaticImport(ImportDescr importDescr)
addStaticImport
in interface Dialect
public void addStaticPackageImport(ImportDescr importDescr)
public boolean isStrictMode()
public void setStrictMode(boolean strictMode)
public void compileAll()
compileAll
in interface Dialect
public AnalysisResult analyzeExpression(PackageBuildContext context, BaseDescr descr, Object content, BoundIdentifiers availableIdentifiers)
analyzeExpression
in interface Dialect
public AnalysisResult analyzeExpression(PackageBuildContext context, BaseDescr descr, Object content, BoundIdentifiers availableIdentifiers, Map<String,Class<?>> localTypes)
public AnalysisResult analyzeBlock(PackageBuildContext context, BaseDescr descr, String text, BoundIdentifiers availableIdentifiers)
analyzeBlock
in interface Dialect
public AnalysisResult analyzeBlock(PackageBuildContext context, String text, BoundIdentifiers availableIdentifiers, Map<String,Class<?>> localTypes, String contextIndeifier, Class kcontextClass)
public org.drools.core.base.mvel.MVELCompilationUnit getMVELCompilationUnit(String expression, AnalysisResult analysis, org.drools.core.rule.Declaration[] previousDeclarations, org.drools.core.rule.Declaration[] localDeclarations, Map<String,Class<?>> otherInputVariables, PackageBuildContext context, String contextIndeifier, Class kcontextClass, boolean readLocalsFromTuple, org.drools.core.base.mvel.MVELCompilationUnit.Scope scope)
public EngineElementBuilder getBuilder(Class clazz)
getBuilder
in interface Dialect
public Map<Class<?>,EngineElementBuilder> getBuilders()
getBuilders
in interface Dialect
public PatternBuilder getPatternBuilder()
getPatternBuilder
in interface Dialect
public QueryBuilder getQueryBuilder()
getQueryBuilder
in interface Dialect
public AccumulateBuilder getAccumulateBuilder()
getAccumulateBuilder
in interface Dialect
public ConsequenceBuilder getConsequenceBuilder()
getConsequenceBuilder
in interface Dialect
public RuleConditionBuilder getEvalBuilder()
getEvalBuilder
in interface Dialect
public FromBuilder getFromBuilder()
getFromBuilder
in interface Dialect
public EntryPointBuilder getEntryPointBuilder()
getEntryPointBuilder
in interface Dialect
public PredicateBuilder getPredicateBuilder()
getPredicateBuilder
in interface Dialect
public SalienceBuilder getSalienceBuilder()
getSalienceBuilder
in interface Dialect
public EnabledBuilder getEnabledBuilder()
getEnabledBuilder
in interface Dialect
public List<org.kie.internal.builder.KnowledgeBuilderResult> getResults()
getResults
in interface Dialect
public void clearResults()
clearResults
in interface Dialect
public ReturnValueBuilder getReturnValueBuilder()
getReturnValueBuilder
in interface Dialect
public RuleClassBuilder getRuleClassBuilder()
getRuleClassBuilder
in interface Dialect
public org.drools.core.base.TypeResolver getTypeResolver()
getTypeResolver
in interface Dialect
public Map getInterceptors()
public PackageRegistry getPackageRegistry()
getPackageRegistry
in interface Dialect
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.