Package com.sun.codemodel
Class JArrayCompRef
java.lang.Object
com.sun.codemodel.JExpressionImpl
com.sun.codemodel.JArrayCompRef
- All Implemented Interfaces:
JAssignmentTarget
,JExpression
,JGenerable
array component reference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JExpression
JArray expression upon which this component will be accessed.private final JExpression
Integer expression representing index of the component -
Constructor Summary
ConstructorsConstructorDescriptionJArrayCompRef
(JExpression array, JExpression index) JArray component reference constructor given an array expression and index. -
Method Summary
Methods inherited from class com.sun.codemodel.JExpressionImpl
_instanceof, band, bor, cand, complement, component, cor, decr, div, eq, gt, gte, incr, invoke, invoke, lt, lte, minus, minus, mod, mul, ne, not, plus, ref, ref, shl, shr, shrz, xor
-
Field Details
-
array
JArray expression upon which this component will be accessed. -
index
Integer expression representing index of the component
-
-
Constructor Details
-
JArrayCompRef
JArrayCompRef(JExpression array, JExpression index) JArray component reference constructor given an array expression and index.- Parameters:
array
- JExpression for the array upon which the component will be accessed,index
- JExpression for index of component to access
-
-
Method Details
-
generate
- Specified by:
generate
in interfaceJGenerable
-
assign
- Specified by:
assign
in interfaceJAssignmentTarget
-
assignPlus
- Specified by:
assignPlus
in interfaceJAssignmentTarget
-