org.drools.semantics.python
Class PythonExprVisitor

java.lang.Object
  extended by Visitor
      extended by org.drools.semantics.python.PythonExprVisitor

public class PythonExprVisitor
extends Visitor

Visits nodes in a Jython parse tree to extract the individual expression criteria.


Method Summary
 java.lang.Object eval_input(SimpleNode node)
          Visite the node.
 java.lang.Object visitName(Name node)
          Visit a Name node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

eval_input

public java.lang.Object eval_input(SimpleNode node)
                            throws java.lang.Exception
Visite the node.

Parameters:
node - The node.
Returns:
Set of variable names.
Throws:
java.lang.Exception - If an error occurs while traversing.

visitName

public java.lang.Object visitName(Name node)
                           throws java.lang.Exception
Visit a Name node.

Parameters:
node - The node.
Returns:
The node.
Throws:
java.lang.Exception - If an error occurs while traversing.