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

FunctionFixer - JBoss RULES 3.0.6 API 英文版文档


org.drools.semantics.java
Class FunctionFixer

java.lang.Object
  extended by org.drools.semantics.java.FunctionFixer

public class FunctionFixer
extends java.lang.Object

This horrific utility adds in the function class name (which is the same as the functions method name) into the RHS guts of a rule. It has to tip toe around method calls, new declarations and other stuff like that. A better future solution is to use a static import as found in Java 5, then ALL THIS can disappear. Oh Happy day.


Constructor Summary
FunctionFixer()
           
 
Method Summary
 java.lang.String fix(java.lang.String raw)
           
 java.lang.String fix(java.lang.String raw, java.util.regex.Pattern pattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionFixer

public FunctionFixer()
Method Detail

fix

public java.lang.String fix(java.lang.String raw)

fix

public java.lang.String fix(java.lang.String raw,
                            java.util.regex.Pattern pattern)