当前页面:
在线文档首页 >
JBoss RULES 3.0.6 API 英文版文档
KnowledgeHelperFixer - JBoss RULES 3.0.6 API 英文版文档
org.drools.semantics.java
Class KnowledgeHelperFixer
java.lang.Object
org.drools.semantics.java.KnowledgeHelperFixer
public class KnowledgeHelperFixer
- extends java.lang.Object
Method Summary |
java.lang.String |
fix(java.lang.String raw)
This takes a raw consequence, and fixes up the KnowledegeHelper references
to be what SMF requires. |
java.lang.String |
fix(java.lang.String raw,
org.drools.semantics.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 |
KnowledgeHelperFixer
public KnowledgeHelperFixer()
fix
public java.lang.String fix(java.lang.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 java.lang.String fix(java.lang.String raw,
org.drools.semantics.java.KnowledgeHelperFixer.Replacer replacer)
- Recursively apply the pattern, replace the guts of what is matched.