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 JExpressionJArray expression upon which this component will be accessed.private final JExpressionInteger 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 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:
generatein interfaceJGenerable
-
assign
- Specified by:
assignin interfaceJAssignmentTarget
-
assignPlus
- Specified by:
assignPlusin interfaceJAssignmentTarget
-