|
ModeShape Distribution 3.0.0.CR3 | |||||||||
| 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 null| Method Detail |
|---|
public Set<SelectorName> selectorNames()
DynamicOperand
public ArithmeticOperator operator()
public DynamicOperand getLeft()
ArithmeticOperand
getLeft in interface ArithmeticOperandpublic DynamicOperand getRight()
ArithmeticOperand
getRight in interface ArithmeticOperandpublic String getOperator()
ArithmeticOperand
getOperator in interface ArithmeticOperandpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic void accept(Visitor visitor)
Visitable
accept in interface Visitablevisitor - the visitor; never null
|
ModeShape Distribution 3.0.0.CR3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||