org.drools.semantics.groovy
Class Interp

java.lang.Object
  |
  +--org.drools.semantics.groovy.Interp
Direct Known Subclasses:
Eval, Exec

public class Interp
extends java.lang.Object

Base class for Groovy based semantic components.

Version:
$Id: Interp.java,v 1.1 2003/12/09 19:54:06 jstrachan Exp $
Author:
James Strachan
See Also:
Eval, Exec

Constructor Summary
protected Interp(java.lang.String text, java.lang.String type)
          Construct.
 
Method Summary
protected  groovy.lang.Script getCode()
           
protected  org.codehaus.groovy.ast.ASTNode getNode()
           
 java.lang.String getText()
          Retrieve the text to evaluate.
protected  groovy.lang.ScriptContext setUpDictionary(Tuple tuple)
          Configure a ScriptContext using a Tuple for variable bindings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interp

protected Interp(java.lang.String text,
                 java.lang.String type)
Construct.

Method Detail

getText

public java.lang.String getText()
Retrieve the text to evaluate.

Returns:
The text to evaluate.

getCode

protected groovy.lang.Script getCode()

getNode

protected org.codehaus.groovy.ast.ASTNode getNode()

setUpDictionary

protected groovy.lang.ScriptContext setUpDictionary(Tuple tuple)
Configure a ScriptContext using a Tuple for variable bindings.

Parameters:
tuple - Tuple containing variable bindings.
Returns:
The dictionary