@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()
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
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.