public class BinaryOperation extends AbstractExpression
| Modifier and Type | Class and Description |
|---|---|
static class |
BinaryOperation.Operator |
AbstractExpression.Typesubs, sup| Constructor and Description |
|---|
BinaryOperation(AbstractExpression op1,
BinaryOperation.Operator operator,
AbstractExpression op2) |
| Modifier and Type | Method and Description |
|---|---|
AbstractExpression |
accept(ExpressionVisitor visitor) |
int |
equivHash() |
AbstractExpression |
getOperand1() |
AbstractExpression |
getOperand2() |
BinaryOperation.Operator |
getOperator() |
int |
getPrecedence() |
boolean |
isDocumentOrdered() |
boolean |
isRestrictive()
An expression is restrictive when any empty sub implies the expression is empty.
|
protected boolean |
propEquals(AbstractExpression other) |
boolean |
propGreaterEqual(AbstractExpression other) |
void |
toString(StringBuilder buf)
Each subclass must implement the toString(StringBuilder) method by
appending itself as a syntatically valid XPath/XQuery expression in
the given buffer.
|
acceptSubs, appendSub, deepEquals, equivalent, geq, getBindingContext, getHead, getLastContextStep, getRoot, getSubs, getSuper, getTail, getType, isAbsolute, matchDown, replaceRoot, setSubs, toStringpublic BinaryOperation(AbstractExpression op1, BinaryOperation.Operator operator, AbstractExpression op2)
public void toString(StringBuilder buf)
AbstractExpressiontoString in class AbstractExpressionbuf - the buffer to append topublic AbstractExpression getOperand1()
public AbstractExpression getOperand2()
public BinaryOperation.Operator getOperator()
public AbstractExpression accept(ExpressionVisitor visitor)
public boolean isDocumentOrdered()
isDocumentOrdered in class AbstractExpressionpublic int getPrecedence()
getPrecedence in class AbstractExpressionprotected boolean propEquals(AbstractExpression other)
propEquals in class AbstractExpressionother - another expressionpublic boolean propGreaterEqual(AbstractExpression other)
propGreaterEqual in class AbstractExpressionother - another expression of the same type as thisthis ge oexpublic int equivHash()
AbstractExpression.equivalent(AbstractExpression)public boolean isRestrictive()
AbstractExpressionisRestrictive in class AbstractExpressionCopyright © 2013. All Rights Reserved.