org.drools.semantics.java
Class JavaExprAnalyzer

java.lang.Object
  extended by org.drools.semantics.java.JavaExprAnalyzer

public class JavaExprAnalyzer
extends Object

Expression analyzer.

Author:
bob mcwhirter

Constructor Summary
JavaExprAnalyzer()
          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

JavaExprAnalyzer

public JavaExprAnalyzer()
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-2005 The Codehaus. All Rights Reserved.