Class Minus
java.lang.Object
org.loboevolution.apache.xpath.Expression
org.loboevolution.apache.xpath.operations.Operation
org.loboevolution.apache.xpath.operations.Minus
- All Implemented Interfaces:
SourceLocator
,ExpressionNode
,XPathVisitable
The binary '-' operation expression executer.
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.loboevolution.apache.xpath.operations.Operation
callVisitors, canTraverseOutsideSubtree, deepEquals, execute, setLeftRight
Methods inherited from class org.loboevolution.apache.xpath.Expression
asIterator, asNode, assertion, bool, error, execute, execute, execute, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isSameClass, isStableNumber
-
Constructor Details
-
Minus
public Minus()
-
-
Method Details
-
operate
Apply the operation to two operands, and return the result.- Overrides:
operate
in classOperation
- Parameters:
left
- non-null reference to the evaluated left operand.right
- non-null reference to the evaluated right operand.- Returns:
- non-null reference to the XObject that represents the result of the operation.
- Throws:
TransformerException
- in case of error
-
num
Evaluate expression to a number.- Overrides:
num
in classExpression
- Parameters:
xctxt
- The XPath runtime context.- Returns:
- The expression evaluated as a double.
- Throws:
TransformerException
- if any
-