public interface JVarDeclaration extends JAnnotatable, JDocCommentable
Modifier and Type | Method and Description |
---|---|
JVarDeclaration |
add(String name)
Add another item to this declaration.
|
JVarDeclaration |
add(String name,
JExpr init)
Add another item to this declaration.
|
String |
name()
Get the variable name.
|
JType |
type()
Get the variable type.
|
annotate, annotate, annotate
deprecated, docComment
blockComment, lineComment
JType type()
String name()
JVarDeclaration add(String name, JExpr init)
name
- the variable nameinit
- the variable initializerJVarDeclaration add(String name)
name
- the variable nameCopyright © 2019 JBoss by Red Hat. All rights reserved.