Package org.htmlunit.xpath.operations
Class Equals
java.lang.Object
org.htmlunit.xpath.Expression
org.htmlunit.xpath.operations.Operation
org.htmlunit.xpath.operations.Equals
- All Implemented Interfaces:
SourceLocator
,ExpressionNode
,XPathVisitable
The '=' operation expression executer.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.htmlunit.xpath.operations.Operation
callVisitors, canTraverseOutsideSubtree, deepEquals, execute, 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
-
Equals
public Equals()
-
-
Method Details
-
operate
Apply the operation to two operands, and return the result.- Overrides:
operate
in classOperation
- Parameters:
left
- non-null reference to the evaluated left operand.right
- non-null reference to the evaluated right operand.- Returns:
- non-null reference to the XObject that represents the result of the operation.
- Throws:
TransformerException
- in case of error
-
bool
Evaluate expression to a boolean.- Overrides:
bool
in classExpression
- Parameters:
xctxt
- The XPath runtime context.- Returns:
- false
- Throws:
TransformerException
- if any
-