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 TypeMethodDescriptionbooleanbool(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 Operation
callVisitors, canTraverseOutsideSubtree, deepEquals, operate, setLeftRightMethods inherited from class 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:
executein 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:
boolin classExpression- Parameters:
xctxt- The XPath runtime context.- Returns:
- false
- Throws:
TransformerException- if any
-