Top Description Fields Constructors Methods
com.sun.codemodel

public final Class JArrayCompRef

extends JExpressionImpl
implements JAssignmentTarget
Class Inheritance
All Implemented Interfaces
com.sun.codemodel.JAssignmentTarget, com.sun.codemodel.JExpression, com.sun.codemodel.JGenerable

array component reference.

Field Summary

Modifier and TypeField and Description
private final JExpression
array

JArray expression upon which this component will be accessed.

private final JExpression
index

Integer expression representing index of the component

Constructor Summary

AccessConstructor and Description
pack-priv
JArrayCompRef(JExpression
JExpression for the array upon which the component will be accessed,
array
,
JExpression
JExpression for index of component to access
index
)

JArray component reference constructor given an array expression and index.

Method Summary

Modifier and TypeMethod and Description
public JExpression
public JExpression
public void
Inherited from com.sun.codemodel.JExpressionImpl:
_instanceofbandborcandcomplementcomponentcordecrdiveqgtgteincrinvokeinvokeltlteminusminusmodmulnenotplusrefrefshlshrshrzxor

Field Detail

arrayback to summary
private final JExpression array

JArray expression upon which this component will be accessed.

indexback to summary
private final JExpression index

Integer expression representing index of the component

Constructor Detail

JArrayCompRefback to summary
pack-priv JArrayCompRef(JExpression array, JExpression index)

JArray component reference constructor given an array expression and index.

Parameters
array:JExpression

JExpression for the array upon which the component will be accessed,

index:JExpression

JExpression for index of component to access

Method Detail

assignback to summary
public JExpression assign(JExpression rhs)

Implements com.sun.codemodel.JAssignmentTarget.assign.

Annotations
@Override
assignPlusback to summary
public JExpression assignPlus(JExpression rhs)

Implements com.sun.codemodel.JAssignmentTarget.assignPlus.

Annotations
@Override
generateback to summary
public void generate(JFormatter f)

Implements com.sun.codemodel.JGenerable.generate.

Annotations
@Override