站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  extended by org.drools.rule.builder.dialect.java.JavaDialect
All Implemented Interfaces:
Dialect

public class JavaDialect
extends Object
implements Dialect


Constructor Summary
JavaDialect(Package pkg, PackageBuilderConfiguration configuration, TypeResolver typeResolver, ClassFieldExtractorCache classFieldExtractorCache)
           
 
Method Summary
 void addClassName(String className)
           
 void addFunction(FunctionDescr functionDescr, TypeResolver typeResolver)
           
 void addRule(RuleBuildContext context)
          This will add the rule for compiling later on.
 void compileAll()
          This actually triggers the compiling of all the resources.
 AccumulateBuilder getAccumulateBuilder()
           
 List[] getBlockIdentifiers(RuleBuildContext context, BaseDescr descr, String text)
           
 Object getBuilder(Class clazz)
           
 Map getBuilders()
           
 ClassFieldExtractorCache getClassFieldExtractorCache()
          Returns the cache of field extractors
 ConsequenceBuilder getConsequenceBuilder()
           
 ConditionalElementBuilder getEvalBuilder()
           
 List[] getExpressionIdentifiers(RuleBuildContext context, BaseDescr descr, Object content)
           
 FromBuilder getFromBuilder()
           
 FunctionBuilder getFunctionBuilder()
           
 KnowledgeHelperFixer getKnowledgeHelperFixer()
          Returns the Knowledge Helper Fixer
 PatternBuilder getPatternBuilder()
           
 PredicateBuilder getPredicateBuilder()
           
 List getResults()
           
 ReturnValueBuilder getReturnValueBuilder()
           
 RuleClassBuilder getRuleClassBuilder()
           
 DeclarationTypeFixer getTypeFixer()
           
 TypeResolver getTypeResolver()
          Returns the current type resolver instance
 void init(Package pkg)
           
 void init(RuleDescr ruleDescr)
           
 void initBuilder()
           
 void setRuleClass(String ruleClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaDialect

public JavaDialect(Package pkg,
                   PackageBuilderConfiguration configuration,
                   TypeResolver typeResolver,
                   ClassFieldExtractorCache classFieldExtractorCache)
Method Detail

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.