org.drools.semantics.groovy
Class Exec

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

public class Exec
extends Interp

Base class for Groovy-based semantic components.

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

Constructor Summary
protected Exec(java.lang.String text)
          Construct.
 
Method Summary
protected  void execute(groovy.lang.ScriptContext locals)
          Execute.
 void execute(Tuple tuple)
          Execute.
 
Methods inherited from class org.drools.semantics.groovy.Interp
getCode, getNode, getText, setUpDictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exec

protected Exec(java.lang.String text)
Construct.

Method Detail

execute

public void execute(Tuple tuple)
Execute.

Parameters:
tuple - Tuple containing variable bindings.

execute

protected void execute(groovy.lang.ScriptContext locals)
Execute.

Parameters:
locals - The evaluation dictionary.