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

public Class And

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

The 'and' 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
And()

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

The result of the operation as a boolean.
bool
(XPathContext
The runtime execution context.
xctxt
)

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

Evaluate this operation directly to a boolean.

public XObject
Inherited from com.sun.org.apache.xpath.internal.operations.Operation:
callVisitorscanTraverseOutsideSubtreedeepEqualsfixupVariablesgetExpressiongetLeftOperandgetRightOperandoperatesetExpressionsetLeftRight

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

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

Constructor Detail

Andback to summary
public And()

Method Detail

boolback to summary
public boolean bool(XPathContext xctxt) throws TransformerException

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

Evaluate this operation directly to a boolean.

Parameters
xctxt:XPathContext

The runtime execution context.

Returns:boolean

The result of the operation as a boolean.

executeback to summary
public XObject execute(XPathContext xctxt) throws TransformerException

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

AND two expressions and return the boolean result. Override superclass method for optimization purposes.

Parameters
xctxt:XPathContext

The runtime execution context.

Returns:XObject

com.sun.org.apache.xpath.internal.objects.XBoolean#S_TRUE or com.sun.org.apache.xpath.internal.objects.XBoolean#S_FALSE.

Exceptions
TransformerException:

Doc from com.sun.org.apache.xpath.internal.Expression.execute.

if a runtime exception occurs.