org.drools.semantics.java
Class ExprAnalyzer

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

public class ExprAnalyzer
extends Object

Expression analyzer.

Version:
$Id: ExprAnalyzer.java,v 1.10 2004/11/28 02:22:18 simon Exp $
Author:
bob mcwhirter

Constructor Summary
ExprAnalyzer()
          Construct.
 
Method Summary
 List analyze(String 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 List analyze(String expr,
                    List availDecls)
             throws TokenStreamException,
                    RecognitionException,
                    MissingDeclarationException
Analyze an expression.

Parameters:
expr - The expression to analyze.
availDecls - Total set of declarations available.
Returns:
The Set of declarations used by the expression.
Throws:
TokenStreamException - If an error occurs in the lexer.
RecognitionException - If an error occurs in the parser.
MissingDeclarationException - If the expression requires a declaration not present in the available declarations.


Copyright © 2001-2004 The Codehaus. All Rights Reserved.