com.gridsystems.beanfilter
Class Parser

java.lang.Object
  extended by com.gridsystems.beanfilter.Parser

public final class Parser
extends java.lang.Object

FilterParser facade. Necessary because the class generated by JavaCC is not public.

Version:
1.0
Author:
Rodrigo Ruiz

Method Summary
static EvalNode parse(java.lang.String s, java.lang.Class<?> c)
          Parses the specified string as an expression to evaluate on object of class 'c'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static EvalNode parse(java.lang.String s,
                             java.lang.Class<?> c)
                      throws EvalException
Parses the specified string as an expression to evaluate on object of class 'c'.

Parameters:
s - An expression to parse
c - The class to evaluate
Returns:
The evaluation tree
Throws:
EvalException - FTR000: Parse exception


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.