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, writeNoSemiannotate, annotate, annotate, writeAnnotationsdeprecated, docComment, writeDocCommentsblockComment, lineComment, writeCommentsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitannotate, annotate, annotatedeprecated, docCommentblockComment, lineCommentprivate final ImplJTry owner
public JVarDeclaration add(java.lang.String name, JExpr init)
JVarDeclarationadd in interface JVarDeclarationadd in class FirstJVarDeclarationname - the variable nameinit - the variable initializerpublic JVarDeclaration add(java.lang.String name)
JVarDeclarationadd in interface JVarDeclarationadd in class FirstJVarDeclarationname - the variable name