org.drools.semantics.groovy
Class ExprAnalyzer

java.lang.Object
  |
  +--org.drools.semantics.groovy.ExprAnalyzer

public class ExprAnalyzer
extends java.lang.Object

Analyzes python expressions for all mentioned variables.

Version:
$Id: ExprAnalyzer.java,v 1.1 2003/12/09 19:54:06 jstrachan Exp $
Author:
bob mcwhirter

Constructor Summary
ExprAnalyzer()
           
 
Method Summary
 Declaration[] analyze(org.codehaus.groovy.ast.ASTNode expr, Declaration[] 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()
Method Detail

analyze

public Declaration[] analyze(org.codehaus.groovy.ast.ASTNode expr,
                             Declaration[] 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.