public class FlatResolver extends Object implements JexlExprResolver
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
noValOnNull
Flag to return NO_VALUE on null from context.
|
NO_VALUE| Constructor and Description |
|---|
FlatResolver()
Default CTOR.
|
FlatResolver(boolean valOnNull)
CTOR that lets you override the default behavior of
noValOnNull, which is true.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(JexlContext context,
String expression)
Try to resolve expression as-is.
|
protected boolean noValOnNull
public FlatResolver()
public FlatResolver(boolean valOnNull)
valOnNull - Whether NO_VALUE will be returned instead of null.public Object evaluate(JexlContext context, String expression)
evaluate in interface JexlExprResolvercontext - The context for resolution.expression - The flat expression.Copyright © 2015 The Apache Software Foundation. All rights reserved.