com.novell.xml.xpath
Class PlusExpr
java.lang.Object
com.novell.xml.xpath.BinaryExpr
com.novell.xml.xpath.NumberExpr
com.novell.xml.xpath.PlusExpr
- All Implemented Interfaces:
- Expression
- public class PlusExpr
- extends NumberExpr
- implements Expression
This class implements the XPath 'AdditiveExpr' functionality.
The evaluation causes the lhs and rhs expressions to be
evaluated and the results added as numbers.
The result is of type NumberValue
PlusExpr
public PlusExpr(Expression lhs,
Expression rhs)
- Construct an addition AdditiveExpr expression
- Parameters:
lhs
- The left-hand-side expressionrhs
- The right-hand-side-expression
toString
public String toString()
- Provide a readable description for debugging.
- Returns:
- String representation
evaluate
public ExpressionValue evaluate(Node contextNode,
ExpressionContext context)
throws XPathEvaluationException
- Evaluate the expression with repect to the passed context
- Specified by:
evaluate
in interface Expression
- Parameters:
contextNode
- context node for expression evaluationcontext
- expression context for expression evaluation
- Returns:
- result of evaluating expression
- Throws:
XPathEvaluationException