org.deegree.filter.expression
Class Add
java.lang.Object
org.deegree.filter.expression.Add
- All Implemented Interfaces:
- Expression
public class Add
- extends Object
- implements Expression
TODO add documentation here
- Version:
- $Revision:$, $Date:$
- Author:
- Markus Schneider , last edited by: $Author:$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Add
public Add(Expression param1,
Expression param2)
getParameter1
public Expression getParameter1()
getParameter2
public Expression getParameter2()
getType
public Expression.Type getType()
- Description copied from interface:
Expression
- Returns the type of expression. Use this to safely determine the subtype of
Expression.
- Specified by:
getType in interface Expression
- Returns:
- type of expression
evaluate
public <T> TypedObjectNode[] evaluate(T obj,
XPathEvaluator<T> xpathEvaluator)
throws FilterEvaluationException
- Description copied from interface:
Expression
- Determines the values of the expression for the given context object.
Note that this returns an TypedObjectNode[], as an expression may evaluate to multiple values, e.g.
a ValueReference that targets a multi property of a feature.
- Specified by:
evaluate in interface Expression
- Type Parameters:
T - type of the context object- Parameters:
obj - object that the expression is evaluated upon, must not be nullxpathEvaluator - used for evaluation of XPath expressions, must not be null
- Returns:
- the values of the expression, may be empty (and even contain
null values), but never
null
- Throws:
FilterEvaluationException
toString
public String toString(String indent)
- Specified by:
toString in interface Expression
getParams
public Expression[] getParams()
- Description copied from interface:
Expression
- Returns the expression's paramters.
- Specified by:
getParams in interface Expression
- Returns:
- the parameters of the expression
Copyright © 2011. All Rights Reserved.