|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectExpressionAbstract
DefaultExpression
public abstract class DefaultExpression
Implements a default expression, with helpful variables and static methods.
Field Summary | |
---|---|
protected short |
expressionType
Defines the type of this expression. |
protected boolean |
permissiveConstruction
Defines the type of this expression. |
Fields inherited from interface ExpressionType |
---|
ATTRIBUTE, ATTRIBUTE_DOUBLE, ATTRIBUTE_GEOMETRY, ATTRIBUTE_INTEGER, ATTRIBUTE_STRING, ATTRIBUTE_UNDECLARED, FUNCTION, LITERAL_DOUBLE, LITERAL_GEOMETRY, LITERAL_INTEGER, LITERAL_LONG, LITERAL_STRING, LITERAL_UNDECLARED, MATH_ADD, MATH_DIVIDE, MATH_MULTIPLY, MATH_SUBTRACT |
Fields inherited from interface Expression |
---|
NIL |
Constructor Summary | |
---|---|
DefaultExpression()
|
Method Summary | |
---|---|
void |
accept(FilterVisitor visitor)
Deprecated. use Expression.accept(ExpressionVisitor, Object) |
Object |
evaluate(Object object)
This method checks if the object is an instance of Feature and
if so, calls through to #evaluate(Feature) . |
Object |
evaluate(SimpleFeature feature)
Returns a value for this expression. |
short |
getType()
Gets the type of this expression. |
Object |
getValue(SimpleFeature feature)
Deprecated. use #evaluate(Feature) . |
protected static boolean |
isAttributeExpression(short expressionType)
Checks to see if passed type is attribute. |
protected static boolean |
isExpression(short expressionType)
Checks to see if passed type is geometry. |
static boolean |
isFunctionExpression(short expressionType)
|
protected static boolean |
isGeometryExpression(short expressionType)
Checks to see if passed type is geometry. |
protected static boolean |
isLiteralExpression(short expressionType)
Checks to see if passed type is geometry. |
protected static boolean |
isMathExpression(Expression expression)
Checks to see if this expression is a math expresson based on its type. |
protected static boolean |
isMathExpression(short expressionType)
Deprecated. use #is |
Methods inherited from class ExpressionAbstract |
---|
accept, eval, eval, evaluate |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Expression |
---|
accept, evaluate |
Field Detail |
---|
protected short expressionType
protected boolean permissiveConstruction
Constructor Detail |
---|
public DefaultExpression()
Method Detail |
---|
public short getType()
public final Object getValue(SimpleFeature feature)
#evaluate(Feature)
.
#evaluate(Feature)
.
public Object evaluate(SimpleFeature feature)
feature
- Specified feature to use when returning value.
public Object evaluate(Object object)
Feature
and
if so, calls through to #evaluate(Feature)
. This is done
to maintain backwards compatability with previous version of Expression api
which depended on Feature. If the object is not an instance of feature
the super implementation is called.
evaluate
in interface Expression
evaluate
in class ExpressionAbstract
public final void accept(FilterVisitor visitor)
Expression.accept(ExpressionVisitor, Object)
protected static boolean isAttributeExpression(short expressionType)
expressionType
- Type of expression for check.
protected static boolean isMathExpression(short expressionType)
#is
expressionType
- Type of expression for check.
protected static boolean isMathExpression(Expression expression)
expression
- expression to check.
protected static boolean isLiteralExpression(short expressionType)
expressionType
- Type of expression for check.
protected static boolean isGeometryExpression(short expressionType)
expressionType
- Type of expression for check.
protected static boolean isExpression(short expressionType)
expressionType
- Type of expression for check.
public static boolean isFunctionExpression(short expressionType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |