| java.lang.Object org.apache.commons.jexl.resolver.FlatResolver
FlatResolver | public class FlatResolver implements JexlExprResolver(Code) | | Simple resolver to try the expression as-is from the context.
For example, you could resolve ant-ish properties (foo.bar.woogie)
using this...
hint, hint...
since: 1.0 author: Geir Magnusson Jr. version: $Id: FlatResolver.java 397542 2006-04-27 13:43:47Z dion $ |
Field Summary | |
protected boolean | noValOnNull Flag to return NO_VALUE on null from context. |
Constructor Summary | |
public | FlatResolver() Default CTOR. | public | FlatResolver(boolean valOnNull) CTOR that lets you override the default behavior of
noValOnNull, which is true. |
Method Summary | |
public Object | evaluate(JexlContext context, String expression) Try to resolve expression as-is.
Parameters: context - The context for resolution. Parameters: expression - The flat expression. |
noValOnNull | protected boolean noValOnNull(Code) | | Flag to return NO_VALUE on null from context.
this allows jexl to try to evaluate
|
FlatResolver | public FlatResolver()(Code) | | Default CTOR.
|
FlatResolver | public FlatResolver(boolean valOnNull)(Code) | | CTOR that lets you override the default behavior of
noValOnNull, which is true. (jexl gets a shot after if null)
Parameters: valOnNull - Whether NO_VALUE will be returned instead of null. |
evaluate | public Object evaluate(JexlContext context, String expression)(Code) | | Try to resolve expression as-is.
Parameters: context - The context for resolution. Parameters: expression - The flat expression. The resolved value. |
|
|