public class Operation extends Expression
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
m_left
The left operand expression.
|
protected Expression |
m_right
The right operand expression.
|
| Constructor and Description |
|---|
Operation() |
| Modifier and Type | Method and Description |
|---|---|
void |
callVisitors(XPathVisitor visitor)
This will traverse the hierarchy, calling the visitor for each member.
|
boolean |
canTraverseOutsideSubtree()
Tell if this expression or it's subexpressions can traverse outside the current subtree.
|
boolean |
deepEquals(Expression expr)
Compare this object with another object and see if they are equal, include the sub heararchy.
|
XObject |
execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.
|
XObject |
operate(XObject left,
XObject right)
Apply the operation to two operands, and return the result.
|
void |
setLeftRight(Expression l,
Expression r)
Set the left and right operand expressions for this operation.
|
asIterator, asNode, assertion, bool, error, execute, execute, execute, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isSameClass, isStableNumber, numprotected Expression m_left
protected Expression m_right
public boolean canTraverseOutsideSubtree()
canTraverseOutsideSubtree in class Expressionpublic void setLeftRight(Expression l, Expression r)
l - The left expression operand.r - The right expression operand.public XObject execute(XPathContext xctxt) throws TransformerException
execute in class Expressionxctxt - The XPath runtime context.XObject.TransformerException - if a runtime exception occurs.public XObject operate(XObject left, XObject right) throws TransformerException
left - non-null reference to the evaluated left operand.right - non-null reference to the evaluated right operand.TransformerException - in case of errorpublic void callVisitors(XPathVisitor visitor)
visitor - The visitor whose appropriate method will be called.public boolean deepEquals(Expression expr)
deepEquals in class Expressionexpr - Another expression object.Copyright © 2022–2023. All rights reserved.