org.drools.semantics.python
Class ExprAnalyzer

java.lang.Object
  extended byorg.drools.semantics.python.ExprAnalyzer

public class ExprAnalyzer
extends Object

Analyzes python expressions for all mentioned variables.

Author:
bob mcwhirter

Constructor Summary
ExprAnalyzer()
          Construct.
 
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
 

Constructor Detail

ExprAnalyzer

public ExprAnalyzer()
Construct.

Method Detail

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-2004 The Codehaus. All Rights Reserved.