org.drools.semantics.java
Class JavaFunctions

java.lang.Object
  extended by org.drools.semantics.java.JavaFunctions
All Implemented Interfaces:
java.io.Serializable, Functions, SemanticComponent

public class JavaFunctions
extends java.lang.Object
implements Functions

Python block semantics Consequence.

See Also:
Serialized Form
 

Constructor Summary
JavaFunctions(RuleSet ruleSet, int id, java.lang.String text)
          Construct.
 
Method Summary
 java.lang.Class getFunctionsClass()
           
 java.lang.String getSemantic()
           
 java.lang.String getText()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaFunctions

public JavaFunctions(RuleSet ruleSet,
                     int id,
                     java.lang.String text)
              throws CompilationException,
                     java.io.IOException,
                     java.lang.ClassNotFoundException
Construct.

Throws:
java.lang.ClassNotFoundException
java.io.IOException
CompilationException
java.io.IOException
org.codehaus.janino.Scanner.ScanException
org.codehaus.janino.Parser.ParseException
org.codehaus.janino.CompileException
Parameters:
classLoader -
text - The block text.
Method Detail

getText

public java.lang.String getText()
Specified by:
getText in interface Functions

getFunctionsClass

public java.lang.Class getFunctionsClass()
                                  throws CompilationException,
                                         java.io.IOException,
                                         java.lang.ClassNotFoundException
Throws:
CompilationException
java.io.IOException
java.lang.ClassNotFoundException

getSemantic

public java.lang.String getSemantic()
Specified by:
getSemantic in interface Functions