net.sf.jexpel
Class Compiler

java.lang.Object
  extended by net.sf.jexpel.Compiler
Direct Known Subclasses:
CompilerImpl

public abstract class Compiler
extends java.lang.Object

The class Compiler compiles jexpel expressions into executable expressions.

Author:
Alan N. Lohse

Constructor Summary
Compiler()
           
 
Method Summary
abstract  Expression compile(java.lang.Class<?> rootClass, java.lang.String expression)
          Compiles an expression in the context of the rootClass
static Compiler getCompiler()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compiler

public Compiler()
Method Detail

getCompiler

public static final Compiler getCompiler()
Returns:
a instance of compiler

compile

public abstract Expression compile(java.lang.Class<?> rootClass,
                                   java.lang.String expression)
                            throws ExpressionException
Compiles an expression in the context of the rootClass

Parameters:
rootClass -
expression -
Returns:
Throws:
ExpressionException