org.apache.xpath.operations

Class Or

Implemented Interfaces:
ExpressionNode, ExpressionOwner, Serializable, SourceLocator, XPathVisitable

public class Or
extends Operation

The 'or' operation expression executer.
See Also:
Serialized Form

Method Summary

boolean
bool(XPathContext xctxt)
Evaluate this operation directly to a boolean.
XObject
execute(XPathContext xctxt)
OR two expressions and return the boolean result.

Methods inherited from class org.apache.xpath.operations.Operation

callVisitors, canTraverseOutsideSubtree, deepEquals, execute, fixupVariables, getExpression, getLeftOperand, getRightOperand, operate, setExpression, setLeftRight

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

Method Details

bool

public boolean bool(XPathContext xctxt)
            throws TransformerException
Evaluate this operation directly to a boolean.
Overrides:
bool in interface Expression
Parameters:
xctxt - The runtime execution context.
Returns:
The result of the operation as a boolean.

execute

public XObject execute(XPathContext xctxt)
            throws TransformerException
OR two expressions and return the boolean result. Override superclass method for optimization purposes.
Overrides:
execute in interface Operation
Parameters:
xctxt - The runtime execution context.

Copyright B) 2004 Apache XML Project. All Rights Reserved.