| Modifier and Type | Field and Description |
|---|---|
| private List | annotations
Annotations on this variable. |
| private JExpression | init
Initialization of the variable in its declaration |
| private JMods | mods
Modifiers. |
| private String | name
Name of the variable |
| private JType | type
JType of the variable |
| Access | Constructor and Description |
|---|---|
| pack-priv | JVar(JMods mods, JType
Datatype of this variable type, String Name of this variable name, JExpression Value to initialize this variable to init)JVar constructor |
| Modifier and Type | Method and Description |
|---|---|
| public JAnnotationUse | annotate(JClass
The annotation class to annotate the field with clazz)Implements com. Adds an annotation to this variable. |
| public void | |
| public JAnnotationUse | annotate(Class<? extends Annotation>
The annotation class to annotate the field with clazz)Implements com. Adds an annotation to this variable. |
| public <W extends JAnnotationWriter | annotate2(Class<W> clazz)
Implements com. Adds an annotation to this program element and returns a type-safe writer to fill in the values of such annotations. |
| public Collection | annotations()
Implements com. Read-only live view of all annotations on this |
| public JExpression | |
| public JExpression | |
| public void | |
| public void | |
| public void | |
| public JVar | |
| protected boolean | |
| public JMods | |
| public String | |
| public void | |
| public boolean | removeAnnotation(JAnnotationUse annotation)
Implements com. Removes annotation from this program element. |
| public JType | |
| public JType |
| annotations | back to summary |
|---|---|
| private List<JAnnotationUse> annotations Annotations on this variable. Lazily created. | |
| init | back to summary |
|---|---|
| private JExpression init Initialization of the variable in its declaration | |
| mods | back to summary |
|---|---|
| private JMods mods Modifiers. | |
| name | back to summary |
|---|---|
| private String name Name of the variable | |
| type | back to summary |
|---|---|
| private JType type JType of the variable | |
| JVar | back to summary |
|---|---|
| pack-priv JVar(JMods mods, JType type, String name, JExpression init) JVar constructor
| |
| annotate | back to summary |
|---|---|
| public JAnnotationUse annotate(JClass clazz) Implements com. Adds an annotation to this variable. | |
| annotate | back to summary |
|---|---|
| public void annotate(JAnnotationUse annotation) | |
| annotate | back to summary |
|---|---|
| public JAnnotationUse annotate(Class<? extends Annotation> clazz) Implements com. Adds an annotation to this variable.
| |
| annotate2 | back to summary |
|---|---|
| public <W extends JAnnotationWriter Implements com. Doc from com. Adds an annotation to this program element and returns a type-safe writer to fill in the values of such annotations.
| |
| annotations | back to summary |
|---|---|
| public Collection Implements com. Doc from com. Read-only live view of all annotations on this
| |
| assign | back to summary |
|---|---|
| public JExpression assign(JExpression rhs) Implements com.
| |
| assignPlus | back to summary |
|---|---|
| public JExpression assignPlus(JExpression rhs) Implements com.
| |
| bind | back to summary |
|---|---|
| public void bind(JFormatter f) | |
| declare | back to summary |
|---|---|
| public void declare(JFormatter f) Implements com.
| |
| generate | back to summary |
|---|---|
| public void generate(JFormatter f) Implements com.
| |
| init | back to summary |
|---|---|
| public JVar init(JExpression init) Initialize this variable
| |
| isAnnotated | back to summary |
|---|---|
| protected boolean isAnnotated() | |
| mods | back to summary |
|---|---|
public JMods mods()
| |
| name | back to summary |
|---|---|
| public String name() Get the name of this variable
| |
| name | back to summary |
|---|---|
| public void name(String name) Changes the name of this variable. | |
| removeAnnotation | back to summary |
|---|---|
| public boolean removeAnnotation(JAnnotationUse annotation) Implements com. Doc from com. Removes annotation from this program element.
| |
| type | back to summary |
|---|---|
| public JType type() Return the type of this variable.
| |
| type | back to summary |
|---|---|
| public JType type(JType newType) Sets the type of this variable. | |