Package com.sun.codemodel
Class JArray
- java.lang.Object
-
- com.sun.codemodel.JExpressionImpl
-
- com.sun.codemodel.JArray
-
- All Implemented Interfaces:
JExpression
,JGenerable
public final class JArray extends JExpressionImpl
array creation and initialization.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<JExpression>
exprs
private JExpression
size
private JType
type
-
Constructor Summary
Constructors Constructor Description JArray(JType type, JExpression size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JArray
add(JExpression e)
Add an element to the array initializervoid
generate(JFormatter f)
-
-
-
Field Detail
-
type
private final JType type
-
size
private final JExpression size
-
exprs
private java.util.List<JExpression> exprs
-
-
Constructor Detail
-
JArray
JArray(JType type, JExpression size)
-
-
Method Detail
-
add
public JArray add(JExpression e)
Add an element to the array initializer
-
generate
public void generate(JFormatter f)
-
-