org.drools.semantics.java
Class JavaExprAnalyzer

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

public class JavaExprAnalyzer
extends java.lang.Object

Expression analyzer.

 

Constructor Summary
JavaExprAnalyzer()
          Construct.
 
Method Summary
 java.util.List analyze(java.lang.String expr, java.util.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 java.util.List analyze(java.lang.String expr,
                              java.util.List availDecls)
                       throws antlr.TokenStreamException,
                              antlr.RecognitionException,
                              MissingDeclarationException
Analyze an 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.
Parameters:
expr - The expression to analyze.
availDecls - Total set of declarations available.
Returns:
The Set of declarations used by the expression.