public class LiteralExpressionImpl extends DefaultExpression implements Literal
NIL| Modifier | Constructor and Description |
|---|---|
protected |
LiteralExpressionImpl()
Constructor with literal.
|
protected |
LiteralExpressionImpl(double value)
Constructor with literal.
|
protected |
LiteralExpressionImpl(int value)
Constructor with literal.
|
protected |
LiteralExpressionImpl(long value) |
|
LiteralExpressionImpl(Object literal)
Constructor with literal.
|
protected |
LiteralExpressionImpl(String value)
Constructor with literal.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(ExpressionVisitor visitor,
Object extraData)
Used by FilterVisitors to perform some action on this filter instance.
|
boolean |
equals(Object obj)
Compares this filter to the specified object.
|
Object |
evaluate(Object feature)
Subclass should override, default implementation returns null.
|
<T> T |
evaluate(Object feature,
Class<T> context)
Default implementation delegates handling of context conversion to Converters utility class.
|
Object |
getValue()
Retrieves the literal of this expression.
|
int |
hashCode()
Override of hashCode method.
|
void |
setValue(Object literal)
Sets the literal.
|
String |
toString()
Return this filter as a string.
|
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpressionprotected LiteralExpressionImpl()
public LiteralExpressionImpl(Object literal) throws IllegalFilterException
literal - The literal to store inside this expression.IllegalFilterException - This literal type is not in scope.protected LiteralExpressionImpl(int value)
value - The integer to store inside this expression.protected LiteralExpressionImpl(long value)
protected LiteralExpressionImpl(double value)
value - The double to store inside this expression.protected LiteralExpressionImpl(String value)
value - The double to store inside this expression.public Object getValue()
public final void setValue(Object literal)
literal - The literal to store inside this expression.IllegalFilterException - This literal type is not in scope.public Object evaluate(Object feature)
ExpressionAbstractevaluate in interface Expressionevaluate in class ExpressionAbstractpublic <T> T evaluate(Object feature, Class<T> context)
ExpressionAbstractSubclasses are expected to make use of the Converters utility class (as the easiest way to provide value morphing in conformance with the Filter specification).
evaluate in interface Expressionevaluate in class ExpressionAbstractT - The type of the returned object.feature - The object to evaluate the expression against.context - The type of the resulting value of the expression.context.public String toString()
public boolean equals(Object obj)
equals in class Objectobj - - the object to compare this ExpressionLiteral against.public int hashCode()
public Object accept(ExpressionVisitor visitor, Object extraData)
accept in interface Expressionvisitor - The visitor which requires access to this filter, the method must call
visitor.visit(this);Copyright © 1996–2021 Geotools. All rights reserved.