Methods Summary |
---|
public void | callVisitors(com.sun.org.apache.xpath.internal.ExpressionOwner owner, com.sun.org.apache.xpath.internal.XPathVisitor visitor)
if(visitor.visitBinaryOperation(owner, this))
{
m_left.callVisitors(new LeftExprOwner(), visitor);
m_right.callVisitors(this, visitor);
}
|
public boolean | canTraverseOutsideSubtree()Tell if this expression or it's subexpressions can traverse outside
the current subtree.
if (null != m_left && m_left.canTraverseOutsideSubtree())
return true;
if (null != m_right && m_right.canTraverseOutsideSubtree())
return true;
return false;
|
public boolean | deepEquals(com.sun.org.apache.xpath.internal.Expression expr)
if(!isSameClass(expr))
return false;
if(!m_left.deepEquals(((Operation)expr).m_left))
return false;
if(!m_right.deepEquals(((Operation)expr).m_right))
return false;
return true;
|
public com.sun.org.apache.xpath.internal.objects.XObject | execute(com.sun.org.apache.xpath.internal.XPathContext xctxt)Execute a binary operation by calling execute on each of the operands,
and then calling the operate method on the derived class.
XObject left = m_left.execute(xctxt, true);
XObject right = m_right.execute(xctxt, true);
XObject result = operate(left, right);
left.detach();
right.detach();
return result;
|
public void | fixupVariables(java.util.Vector vars, int globalsSize)This function is used to fixup variables from QNames to stack frame
indexes at stylesheet build time.
m_left.fixupVariables(vars, globalsSize);
m_right.fixupVariables(vars, globalsSize);
|
public com.sun.org.apache.xpath.internal.Expression | getExpression()
return m_right;
|
public com.sun.org.apache.xpath.internal.Expression | getLeftOperand()
return m_left;
|
public com.sun.org.apache.xpath.internal.Expression | getRightOperand()
return m_right;
|
public com.sun.org.apache.xpath.internal.objects.XObject | operate(com.sun.org.apache.xpath.internal.objects.XObject left, com.sun.org.apache.xpath.internal.objects.XObject right)Apply the operation to two operands, and return the result.
return null; // no-op
|
public void | setExpression(com.sun.org.apache.xpath.internal.Expression exp)
exp.exprSetParent(this);
m_right = exp;
|
public void | setLeftRight(com.sun.org.apache.xpath.internal.Expression l, com.sun.org.apache.xpath.internal.Expression r)Set the left and right operand expressions for this operation.
m_left = l;
m_right = r;
l.exprSetParent(this);
r.exprSetParent(this);
|