final class JArrayCompRef extends JExpressionImpl implements JAssignmentTarget
Modifier and Type | Field and Description |
---|---|
private JExpression |
array
JArray expression upon which this component will be accessed.
|
private JExpression |
index
Integer expression representing index of the component
|
Constructor and Description |
---|
JArrayCompRef(JExpression array,
JExpression index)
JArray component reference constructor given an array expression
and index.
|
Modifier and Type | Method and Description |
---|---|
JExpression |
assign(JExpression rhs) |
JExpression |
assignPlus(JExpression rhs) |
void |
generate(JFormatter f) |
_instanceof, band, bor, cand, complement, component, cond, cor, decr, div, eq, gt, gte, incr, invoke, invoke, lt, lte, minus, minus, mod, mul, ne, not, plus, ref, ref, shl, shr, shrz, xor
private final JExpression array
private final JExpression index
JArrayCompRef(JExpression array, JExpression index)
array
- JExpression for the array upon which
the component will be accessed,index
- JExpression for index of component to accesspublic void generate(JFormatter f)
generate
in interface JGenerable
public JExpression assign(JExpression rhs)
assign
in interface JAssignmentTarget
public JExpression assignPlus(JExpression rhs)
assignPlus
in interface JAssignmentTarget