public abstract class UnaryOperation extends Expression
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
m_right
The operand for the operation.
|
| Constructor and Description |
|---|
UnaryOperation() |
| 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.
|
abstract XObject |
operate(XObject right)
Apply the operation to two operands, and return the result.
|
void |
setRight(Expression r)
Set the expression operand for the operation.
|
asIterator, asNode, assertion, bool, error, execute, execute, execute, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isSameClass, isStableNumber, numprotected Expression m_right
public boolean canTraverseOutsideSubtree()
canTraverseOutsideSubtree in class Expressionpublic void setRight(Expression r)
r - The expression operand to which the unary operation will be applied.public XObject execute(XPathContext xctxt) throws TransformerException
execute in class Expressionxctxt - The XPath runtime context.XObject.TransformerException - if a runtime exception occurs.public abstract XObject operate(XObject right) throws TransformerException
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. All rights reserved.