class TryJVarDeclaration extends FirstJVarDeclaration
JClassItem.Kind
Modifier and Type | Field and Description |
---|---|
private ImplJTry |
owner |
SMART_NAME_SORT
Constructor and Description |
---|
TryJVarDeclaration(int mods,
JType type,
java.lang.String name,
JExpr value,
ImplJTry owner) |
Modifier and Type | Method and Description |
---|---|
JVarDeclaration |
add(java.lang.String name)
Add another item to this declaration.
|
JVarDeclaration |
add(java.lang.String name,
JExpr init)
Add another item to this declaration.
|
getItemKind, getModifiers, getName, hasAllModifiers, hasAnyModifier, mods, name, type, write, write, writeNoSemi
annotate, annotate, annotate, writeAnnotations
deprecated, docComment, writeDocComments
blockComment, lineComment, writeComments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
annotate, annotate, annotate
deprecated, docComment
blockComment, lineComment
private final ImplJTry owner
public JVarDeclaration add(java.lang.String name, JExpr init)
JVarDeclaration
add
in interface JVarDeclaration
add
in class FirstJVarDeclaration
name
- the variable nameinit
- the variable initializerpublic JVarDeclaration add(java.lang.String name)
JVarDeclaration
add
in interface JVarDeclaration
add
in class FirstJVarDeclaration
name
- the variable name