|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.query.model.ArithmeticOperand
@Immutable public class ArithmeticOperand
A dynamic operand that represents a (binary) arithmetic operation upon one or more other operands, used in Comparison
and Ordering
components.
Constructor Summary | |
---|---|
ArithmeticOperand(DynamicOperand left,
ArithmeticOperator operator,
DynamicOperand right)
Create a arithmetic dynamic operand that operates upon the supplied operand(s). |
Method Summary | |
---|---|
void |
accept(Visitor visitor)
Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation. |
boolean |
equals(Object obj)
|
DynamicOperand |
getLeft()
Get the left-hand operand. |
String |
getOperator()
Get the operator for this binary operand. |
DynamicOperand |
getRight()
Get the right-hand operand. |
int |
hashCode()
|
ArithmeticOperator |
operator()
Get the operator for this binary operand. |
Set<SelectorName> |
selectorNames()
Get the selector symbols to which this operand applies. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArithmeticOperand(DynamicOperand left, ArithmeticOperator operator, DynamicOperand right)
left
- the left-hand-side operandoperator
- the arithmetic operator; may not be nullright
- the right-hand-side operand
IllegalArgumentException
- if any of the arguments is nullMethod Detail |
---|
public Set<SelectorName> selectorNames()
DynamicOperand
public ArithmeticOperator operator()
public DynamicOperand getLeft()
ArithmeticOperand
getLeft
in interface ArithmeticOperand
public DynamicOperand getRight()
ArithmeticOperand
getRight
in interface ArithmeticOperand
public String getOperator()
ArithmeticOperand
getOperator
in interface ArithmeticOperand
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public void accept(Visitor visitor)
Visitable
accept
in interface Visitable
visitor
- the visitor; never null
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |