APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xpath.internal.operations

public Class Number

extends UnaryOperation
Class Inheritance
Imports
com.sun.org.apache.xpath.internal.XPathContext, com.sun.org.apache.xpath.internal.objects.XNumber, .XObject

The 'number()' operation expression executer.

Field Summary

Modifier and TypeField and Description
pack-priv static final long
Inherited from com.sun.org.apache.xpath.internal.operations.UnaryOperation:
m_right

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public double

Returns:

The result of the operation as a double.
num
(XPathContext
The runtime execution context.
xctxt
)

Overrides com.sun.org.apache.xpath.internal.Expression.num.

Evaluate this operation directly to a double.

public XObject

Returns:

non-null reference to the XObject that represents the result of the operation.
operate
(XObject
non-null reference to the evaluated right operand.
right
)

Implements abstract com.sun.org.apache.xpath.internal.operations.UnaryOperation.operate.

Apply the operation to two operands, and return the result.

Inherited from com.sun.org.apache.xpath.internal.operations.UnaryOperation:
callVisitorscanTraverseOutsideSubtreedeepEqualsexecutefixupVariablesgetExpressiongetOperandsetExpressionsetRight

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides com.sun.org.apache.xpath.internal.operations.UnaryOperation.serialVersionUID.

Constructor Detail

Numberback to summary
public Number()

Method Detail

numback to summary
public double num(XPathContext xctxt) throws TransformerException

Overrides com.sun.org.apache.xpath.internal.Expression.num.

Evaluate this operation directly to a double.

Parameters
xctxt:XPathContext

The runtime execution context.

Returns:double

The result of the operation as a double.

operateback to summary
public XObject operate(XObject right) throws TransformerException

Implements abstract com.sun.org.apache.xpath.internal.operations.UnaryOperation.operate.

Apply the operation to two operands, and return the result.

Parameters
right:XObject

non-null reference to the evaluated right operand.

Returns:XObject

non-null reference to the XObject that represents the result of the operation.