Package org.htmlunit.xpath.operations
Class And
java.lang.Object
org.htmlunit.xpath.Expression
org.htmlunit.xpath.operations.Operation
org.htmlunit.xpath.operations.And
- All Implemented Interfaces:
SourceLocator,ExpressionNode,XPathVisitable
The 'and' operation expression executor.
-
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 org.htmlunit.xpath.operations.Operation
callVisitors, canTraverseOutsideSubtree, deepEquals, operate, setLeftRightMethods 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
-
And
public And()
-
-
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
-