org.drools.semantics.java
Class FunctionFixer

java.lang.Object
  extended byorg.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)