站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

KnowledgeHelperFixer (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.rule.builder.dialect.java
Class KnowledgeHelperFixer

java.lang.Object
  extended by org.drools.rule.builder.dialect.java.KnowledgeHelperFixer

public class KnowledgeHelperFixer
extends Object


Constructor Summary
KnowledgeHelperFixer()
           
 
Method Summary
 String fix(String raw)
          This takes a raw consequence, and fixes up the KnowledegeHelper references to be what SMF requires.
 String fix(String raw, org.drools.rule.builder.dialect.java.KnowledgeHelperFixer.Replacer replacer)
          Recursively apply the pattern, replace the guts of what is matched.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KnowledgeHelperFixer

public KnowledgeHelperFixer()
Method Detail

fix

public String fix(String raw)
This takes a raw consequence, and fixes up the KnowledegeHelper references to be what SMF requires. eg: modify( myObject ); --> drools.modify( myObjectHandle, myObject ); refer to the Replacer implementation classes below for the specific replacement patterns. (can adjust the PREFIX if needed). Uses some non-tail recursion to ensure that all parts are "expanded".


fix

public String fix(String raw,
                  org.drools.rule.builder.dialect.java.KnowledgeHelperFixer.Replacer replacer)
Recursively apply the pattern, replace the guts of what is matched.



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