当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
JavaDialect (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.rule.builder.dialect.java
Class JavaDialect
java.lang.Object
org.drools.rule.builder.dialect.java.JavaDialect
- All Implemented Interfaces:
- Dialect
public class JavaDialect
- extends Object
- implements Dialect
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaDialect
public JavaDialect(Package pkg,
PackageBuilderConfiguration configuration,
TypeResolver typeResolver,
ClassFieldExtractorCache classFieldExtractorCache)
initBuilder
public void initBuilder()
getBuilders
public Map getBuilders()
- Specified by:
getBuilders
in interface Dialect
init
public void init(Package pkg)
- Specified by:
init
in interface Dialect
init
public void init(RuleDescr ruleDescr)
- Specified by:
init
in interface Dialect
setRuleClass
public void setRuleClass(String ruleClass)
getExpressionIdentifiers
public List[] getExpressionIdentifiers(RuleBuildContext context,
BaseDescr descr,
Object content)
- Specified by:
getExpressionIdentifiers
in interface Dialect
getBlockIdentifiers
public List[] getBlockIdentifiers(RuleBuildContext context,
BaseDescr descr,
String text)
- Specified by:
getBlockIdentifiers
in interface Dialect
getTypeResolver
public TypeResolver getTypeResolver()
- Returns the current type resolver instance
- Specified by:
getTypeResolver
in interface Dialect
- Returns:
getClassFieldExtractorCache
public ClassFieldExtractorCache getClassFieldExtractorCache()
- Returns the cache of field extractors
- Specified by:
getClassFieldExtractorCache
in interface Dialect
- Returns:
getKnowledgeHelperFixer
public KnowledgeHelperFixer getKnowledgeHelperFixer()
- Returns the Knowledge Helper Fixer
- Returns:
getTypeFixer
public DeclarationTypeFixer getTypeFixer()
- Returns:
- the typeFixer
getBuilder
public Object getBuilder(Class clazz)
- Specified by:
getBuilder
in interface Dialect
getPatternBuilder
public PatternBuilder getPatternBuilder()
getAccumulateBuilder
public AccumulateBuilder getAccumulateBuilder()
- Specified by:
getAccumulateBuilder
in interface Dialect
getEvalBuilder
public ConditionalElementBuilder getEvalBuilder()
- Specified by:
getEvalBuilder
in interface Dialect
getPredicateBuilder
public PredicateBuilder getPredicateBuilder()
- Specified by:
getPredicateBuilder
in interface Dialect
getReturnValueBuilder
public ReturnValueBuilder getReturnValueBuilder()
- Specified by:
getReturnValueBuilder
in interface Dialect
getConsequenceBuilder
public ConsequenceBuilder getConsequenceBuilder()
- Specified by:
getConsequenceBuilder
in interface Dialect
getRuleClassBuilder
public RuleClassBuilder getRuleClassBuilder()
- Specified by:
getRuleClassBuilder
in interface Dialect
getFunctionBuilder
public FunctionBuilder getFunctionBuilder()
getFromBuilder
public FromBuilder getFromBuilder()
- Specified by:
getFromBuilder
in interface Dialect
compileAll
public void compileAll()
- This actually triggers the compiling of all the resources.
Errors are mapped back to the element that originally generated the semantic
code.
- Specified by:
compileAll
in interface Dialect
addRule
public void addRule(RuleBuildContext context)
- This will add the rule for compiling later on.
It will not actually call the compiler
- Specified by:
addRule
in interface Dialect
addFunction
public void addFunction(FunctionDescr functionDescr,
TypeResolver typeResolver)
- Specified by:
addFunction
in interface Dialect
addClassName
public void addClassName(String className)
getResults
public List getResults()
- Specified by:
getResults
in interface Dialect
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.