Package | Description |
---|---|
com.sun.codemodel |
Library for generating Java source code
|
Modifier and Type | Method | Description |
---|---|---|
JFieldVar |
JDefinedClass.field(int mods,
JType type,
String name) |
Adds a field to the list of field members of this JDefinedClass.
|
JFieldVar |
JDefinedClass.field(int mods,
JType type,
String name,
JExpression init) |
Adds a field to the list of field members of this JDefinedClass.
|
JFieldVar |
JDefinedClass.field(int mods,
Class<?> type,
String name) |
|
JFieldVar |
JDefinedClass.field(int mods,
Class<?> type,
String name,
JExpression init) |
Modifier and Type | Method | Description |
---|---|---|
Map<String,JFieldVar> |
JDefinedClass.fields() |
Returns all the fields declred in this class.
|
Modifier and Type | Method | Description |
---|---|---|
void |
JDefinedClass.removeField(JFieldVar field) |
Removes a
JFieldVar from this class. |
Copyright © 2018 Oracle Corporation. All rights reserved.