org.apache.commons.jexl.resolver
public class FlatResolver extends java.lang.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 |
---|---|
java.lang.Object |
evaluate(JexlContext context,
java.lang.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 java.lang.Object evaluate(JexlContext context, java.lang.String expression)
evaluate
in interface JexlExprResolver
context
- The context for resolution.expression
- The flat expression.Copyright © 2014 The Apache Software Foundation. All Rights Reserved.