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

public Class Div

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

The 'div' operation expression executer.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
Div()

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 left operand.
left
,
XObject
non-null reference to the evaluated right operand.
right
)

Overrides com.sun.org.apache.xpath.internal.operations.Operation.operate.

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

Inherited from com.sun.org.apache.xpath.internal.operations.Operation:
callVisitorscanTraverseOutsideSubtreedeepEqualsexecutefixupVariablesgetExpressiongetLeftOperandgetRightOperandsetExpressionsetLeftRight

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

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

Constructor Detail

Divback to summary
public Div()

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 left, XObject right) throws TransformerException

Overrides com.sun.org.apache.xpath.internal.operations.Operation.operate.

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

Parameters
left:XObject

non-null reference to the evaluated left operand.

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.