Package org.htmlunit.xpath.operations
Class Or
java.lang.Object
org.htmlunit.xpath.Expression
org.htmlunit.xpath.operations.Operation
org.htmlunit.xpath.operations.Or
- All Implemented Interfaces:
SourceLocator
,ExpressionNode
,XPathVisitable
The 'or' operation expression executer.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
bool
(XPathContext xctxt) Evaluate expression to a boolean.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.Methods inherited from class org.htmlunit.xpath.operations.Operation
callVisitors, canTraverseOutsideSubtree, deepEquals, operate, setLeftRight
Methods inherited from class org.htmlunit.xpath.Expression
asIterator, asNode, assertion, error, execute, execute, execute, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isSameClass, isStableNumber, num
-
Constructor Details
-
Or
public Or()
-
-
Method Details
-
execute
Execute an expression in the XPath runtime context, and return the result of the expression.- Overrides:
execute
in classOperation
- Parameters:
xctxt
- The XPath runtime context.- Returns:
- The result of the expression in the form of a
XObject
. - Throws:
TransformerException
- if a runtime exception occurs.
-
bool
Evaluate expression to a boolean.- Overrides:
bool
in classExpression
- Parameters:
xctxt
- The XPath runtime context.- Returns:
- false
- Throws:
TransformerException
- if any
-