org.drools.semantics.python
Class PythonExprAnalyzer

java.lang.Object
  extended by org.drools.semantics.python.PythonExprAnalyzer

public class PythonExprAnalyzer
extends java.lang.Object

Analyzes python expressions for all mentioned variables.


Constructor Summary
PythonExprAnalyzer()
          Construct.
 
Method Summary
 Declaration[] analyze(modType expr, java.util.List availDecls)
          Analyze an expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PythonExprAnalyzer

public PythonExprAnalyzer()
Construct.

Method Detail

analyze

public Declaration[] analyze(modType expr,
                             java.util.List availDecls)
                      throws java.lang.Exception
Analyze an expression.

Parameters:
expr - The expression to analyze.
availDecls - Total set of declarations available.
Returns:
The array of declarations used by the expression.
Throws:
java.lang.Exception - If an error occurs while attempting to analyze the expression.