Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.xpath.Expression
org.apache.xpath.operations.UnaryOperation
org.apache.xpath.operations.Neg
public class Neg
extends UnaryOperation
Method Summary | |
double |
|
XObject |
Methods inherited from class org.apache.xpath.operations.UnaryOperation | |
callVisitors , canTraverseOutsideSubtree , deepEquals , execute , fixupVariables , getExpression , getOperand , operate , setExpression , setRight |
Methods inherited from class org.apache.xpath.Expression | |
asIterator , asIteratorRaw , asNode , assertion , bool , canTraverseOutsideSubtree , deepEquals , error , execute , execute , execute , execute , executeCharsToContentHandler , exprAddChild , exprGetChild , exprGetNumChildren , exprGetParent , exprSetParent , fixupVariables , getColumnNumber , getExpressionOwner , getLineNumber , getPublicId , getSystemId , isNodesetExpr , isStableNumber , num , warn , xstr |
public double num(XPathContext xctxt) throws TransformerException
Evaluate this operation directly to a double.
- Overrides:
- num in interface Expression
- Parameters:
xctxt
- The runtime execution context.
- Returns:
- The result of the operation as a double.
- Throws:
TransformerException
-
public XObject operate(XObject right) throws TransformerException
Apply the operation to two operands, and return the result.
- Overrides:
- operate in interface UnaryOperation
- Parameters:
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
-