org.drools.semantics.java
Class ExprAnalyzer

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

public class ExprAnalyzer
extends java.lang.Object

Expression analyzer.

Version:
$Id: ExprAnalyzer.java,v 1.6 2003/03/25 19:47:29 tdiesler Exp $
Author:
bob mcwhirter

Constructor Summary
ExprAnalyzer()
          Construct.
 
Method Summary
 Declaration[] analyze(java.lang.String 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()
Construct.

Method Detail

analyze

public Declaration[] analyze(java.lang.String expr,
                             Declaration[] availDecls)
                      throws antlr.TokenStreamException,
                             antlr.RecognitionException,
                             MissingDeclarationException
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:
antlr.TokenStreamException - If an error occurs in the lexer.
antlr.RecognitionException - If an error occurs in the parser.
MissingDeclarationException - If the expression requires a declaration not present in the available declarations.