org.drools.semantics.python
Class PythonExprAnalyzer
java.lang.Object
org.drools.semantics.python.PythonExprAnalyzer
public class PythonExprAnalyzer
- extends Object
Analyzes python expressions for all mentioned variables.
- Author:
- bob mcwhirter
Method Summary |
Declaration[] |
analyze(org.python.parser.ast.modType expr,
List availDecls)
Analyze an expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PythonExprAnalyzer
public PythonExprAnalyzer()
- Construct.
analyze
public Declaration[] analyze(org.python.parser.ast.modType expr,
List availDecls)
throws 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:
Exception
- If an error occurs while attempting to analyze the
expression.
Copyright © 2001-2005 The Codehaus. All Rights Reserved.