org.drools.semantics.python
Class Exec

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

public class Exec
extends Interp

Base class for Jython statement-based Python semantic components.

Version:
$Id: Exec.java,v 1.7 2003/11/29 02:50:50 bob Exp $
Author:
bob mcwhirter, Christiaan ten Klooster
See Also:
BlockConsequence

Constructor Summary
protected Exec(java.lang.String text)
          Construct.
 
Method Summary
protected  void execute(org.python.core.PyDictionary locals)
          Execute.
 void execute(Tuple tuple)
          Execute.
 
Methods inherited from class org.drools.semantics.python.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(org.python.core.PyDictionary locals)
Execute.

Parameters:
locals - The evaluation dictionary.