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:
javax.xml.transform.SourceLocator
,ExpressionNode
,XPathVisitable
public class And extends Operation
The 'and' operation expression executor.
-
-
Constructor Summary
Constructors Constructor Description And()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
bool(XPathContext xctxt)
Evaluate expression to a boolean.XObject
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
-
-
-
-
Method Detail
-
execute
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
Execute an expression in the XPath runtime context, and return the result of the expression.
-
bool
public boolean bool(XPathContext xctxt) throws javax.xml.transform.TransformerException
Evaluate expression to a boolean.- Overrides:
bool
in classExpression
- Parameters:
xctxt
- The XPath runtime context.- Returns:
- false
- Throws:
javax.xml.transform.TransformerException
- if any
-
-