public final class NilExpression extends Object implements Expression, Serializable
null
. This placeholder
class allows data structures to avoid the use of null
. Please note that Expression.NIL
is not considered a Literal with value null
(since the literal may have
its value changed).NIL
Modifier and Type | Method and Description |
---|---|
Object |
accept(ExpressionVisitor visitor,
Object extraData)
Accepts a visitor.
|
Object |
evaluate(Object object)
Returns
null . |
<T> T |
evaluate(Object object,
Class<T> context)
Returns
null . |
String |
toString()
Returns a string representation of this expression.
|
public Object accept(ExpressionVisitor visitor, Object extraData)
accept
in interface Expression
public Object evaluate(Object object)
null
.evaluate
in interface Expression
public <T> T evaluate(Object object, Class<T> context)
null
.evaluate
in interface Expression
T
- The type of the returned object.object
- The object to evaluate the expression against.context
- The type of the resulting value of the expression.context
.Copyright © 1996–2019 Geotools. All rights reserved.