|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.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)
|
int |
hashCode()
|
DynamicOperand |
left()
Get the left-hand operand. |
ArithmeticOperator |
operator()
Get the operator for this binary operand. |
DynamicOperand |
right()
Get the right-hand 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()
selectorNames
in interface DynamicOperand
DynamicOperand.selectorNames()
public ArithmeticOperator operator()
public DynamicOperand left()
public DynamicOperand right()
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public void accept(Visitor visitor)
accept
in interface Visitable
visitor
- the visitor; never nullVisitable.accept(org.modeshape.graph.query.model.Visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |