com.novell.xml.xpath
Class GreaterThanExpr
java.lang.Object
com.novell.xml.xpath.BinaryExpr
com.novell.xml.xpath.BooleanExpr
com.novell.xml.xpath.ComparisonExpr
com.novell.xml.xpath.GreaterThanExpr
- All Implemented Interfaces:
- Expression
- public class GreaterThanExpr
- extends ComparisonExpr
- implements Expression
This class implements the XPath 'RelationalExpr' functionality.
The evaluation causes the lhs and rhs expressions to be
evaluated and the results compared.
The result is true if the lhs operand is greater than the rhs operand
GreaterThanExpr
public GreaterThanExpr(Expression lhs,
Expression rhs)
- Construct an equality 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