org.apache.commons.jexl.resolver
public class FlatResolver extends Object implements JexlExprResolver
Since: 1.0
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.
this allows jexl to try to evaluate |
Constructor Summary | |
---|---|
FlatResolver()
Default CTOR. | |
FlatResolver(boolean valOnNull)
CTOR that lets you override the default behavior of
noValOnNull, which is true. (jexl gets a shot after if null)
|
Method Summary | |
---|---|
Object | evaluate(JexlContext context, String expression)
Try to resolve expression as-is.
|
Parameters: valOnNull Whether NO_VALUE will be returned instead of null.
Parameters: context The context for resolution. expression The flat expression.
Returns: The resolved value.