@Immutable public class ArithmeticOperand extends Object implements DynamicOperand, ArithmeticOperand
Comparison
and Ordering components.| Constructor and Description |
|---|
ArithmeticOperand(DynamicOperand left,
ArithmeticOperator operator,
DynamicOperand right)
Create a arithmetic dynamic operand that operates upon the supplied operand(s).
|
| Modifier and Type | Method and Description |
|---|---|
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() |
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 operandIllegalArgumentException - if any of the arguments is nullpublic Set<SelectorName> selectorNames()
DynamicOperandpublic ArithmeticOperator operator()
public DynamicOperand getLeft()
ArithmeticOperandgetLeft in interface ArithmeticOperandpublic DynamicOperand getRight()
ArithmeticOperandgetRight in interface ArithmeticOperandpublic String getOperator()
ArithmeticOperandgetOperator in interface ArithmeticOperandCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.