|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.graph.query.model.DynamicOperand org.jboss.dna.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)
|
DynamicOperand |
getLeft()
Get the left-hand operand. |
ArithmeticOperator |
getOperator()
Get the operator for this binary operand. |
DynamicOperand |
getRight()
Get the right-hand operand. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class org.jboss.dna.graph.query.model.DynamicOperand |
---|
getSelectorNames |
Methods inherited from class java.lang.Object |
---|
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 ArithmeticOperator getOperator()
public DynamicOperand getLeft()
public DynamicOperand getRight()
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)
visitor
- the visitor; never nullVisitable.accept(org.jboss.dna.graph.query.model.Visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |