net.sf.jexpel
Class Parser

java.lang.Object
  extended by net.sf.jexpel.Parser
Direct Known Subclasses:
ExpressionParser

public abstract class Parser
extends java.lang.Object

ExpressionParser transforms a string which its content is an expression into an expression tree

Author:
Alan N. Lohse

Constructor Summary
Parser()
           
 
Method Summary
static Parser getParser()
           
abstract  Expression parse(java.lang.Class<?> rootClass, java.lang.String expression)
          Parses the expression
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()
Method Detail

getParser

public static final Parser getParser()
Returns:
the expression parser

parse

public abstract Expression parse(java.lang.Class<?> rootClass,
                                 java.lang.String expression)
                          throws ExpressionException
Parses the expression

Parameters:
rootClass - the root class which the expression will be executed
expression - the expression string
Returns:
the expression tree
Throws:
ExpressionException