Modifier and Type | Method and Description |
---|---|
JVarDeclaration |
JVarDeclaration.add(String name)
Add another item to this declaration.
|
JVarDeclaration |
JVarDeclaration.add(String name,
JExpr init)
Add another item to this declaration.
|
JVarDeclaration |
JClassDefSection.field(int mods,
Class<?> type,
String name)
Add a field to this type.
|
JVarDeclaration |
JClassDefSection.field(int mods,
Class<?> type,
String name,
JExpr init)
Add a field to this type.
|
JVarDeclaration |
JClassDefSection.field(int mods,
JType type,
String name)
Add a field to this type.
|
JVarDeclaration |
JClassDefSection.field(int mods,
JType type,
String name,
JExpr init)
Add a field to this type.
|
JVarDeclaration |
JClassDefSection.field(int mods,
String type,
String name)
Add a field to this type.
|
JVarDeclaration |
JClassDefSection.field(int mods,
String type,
String name,
JExpr init)
Add a field to this type.
|
JVarDeclaration |
JFor.init(int mods,
Class<?> type,
String name,
JExpr value)
Add a loop initializer.
|
JVarDeclaration |
JFor.init(int mods,
JType type,
String name,
JExpr value)
Add a loop initializer.
|
JVarDeclaration |
JFor.init(int mods,
String type,
String name,
JExpr value)
Add a loop initializer.
|
JVarDeclaration |
JBlock.var(int mods,
Class<?> type,
String name)
Insert a local variable declaration at this point.
|
JVarDeclaration |
JBlock.var(int mods,
Class<?> type,
String name,
JExpr value)
Insert a local variable declaration at this point.
|
JVarDeclaration |
JBlock.var(int mods,
JType type,
String name)
Insert a local variable declaration at this point.
|
JVarDeclaration |
JBlock.var(int mods,
JType type,
String name,
JExpr value)
Insert a local variable declaration at this point.
|
JVarDeclaration |
JBlock.var(int mods,
String type,
String name)
Insert a local variable declaration at this point.
|
JVarDeclaration |
JBlock.var(int mods,
String type,
String name,
JExpr value)
Insert a local variable declaration at this point.
|
JVarDeclaration |
JTry.with(int mods,
Class<? extends AutoCloseable> type,
String var,
JExpr init)
Add a resource for
try -with-resources constructs. |
JVarDeclaration |
JTry.with(int mods,
JType type,
String var,
JExpr init)
Add a resource for
try -with-resources constructs. |
JVarDeclaration |
JTry.with(int mods,
String type,
String var,
JExpr init)
Add a resource for
try -with-resources constructs. |
Modifier and Type | Method and Description |
---|---|
static JAssignableExpr |
JExprs.$v(JVarDeclaration varDeclaration)
Return a name expression from an annotation processor variable declaration.
|
static JAssignableExpr |
JExprs.name(JVarDeclaration varDeclaration)
Return a name expression from an annotation processor variable declaration.
|
Copyright © 2019 JBoss by Red Hat. All rights reserved.