Package org.jboss.jdeparser
Class TryJVarDeclaration
- java.lang.Object
-
- org.jboss.jdeparser.BasicJCommentable
-
- org.jboss.jdeparser.AbstractJDocCommentable
-
- org.jboss.jdeparser.BasicJAnnotatable
-
- org.jboss.jdeparser.FirstJVarDeclaration
-
- org.jboss.jdeparser.TryJVarDeclaration
-
- All Implemented Interfaces:
BlockContent,ClassContent,JAnnotatable,JClassItem,JCommentable,JDocCommentable,JVarDeclaration,Writable
class TryJVarDeclaration extends FirstJVarDeclaration
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.jdeparser.JClassItem
JClassItem.Kind
-
-
Field Summary
Fields Modifier and Type Field Description private ImplJTryowner-
Fields inherited from interface org.jboss.jdeparser.JClassItem
SMART_NAME_SORT
-
-
Constructor Summary
Constructors Constructor Description TryJVarDeclaration(int mods, JType type, java.lang.String name, JExpr value, ImplJTry owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JVarDeclarationadd(java.lang.String name)Add another item to this declaration.JVarDeclarationadd(java.lang.String name, JExpr init)Add another item to this declaration.-
Methods inherited from class org.jboss.jdeparser.FirstJVarDeclaration
getItemKind, getModifiers, getName, hasAllModifiers, hasAnyModifier, mods, name, type, write, write, writeNoSemi
-
Methods inherited from class org.jboss.jdeparser.BasicJAnnotatable
annotate, annotate, annotate, writeAnnotations
-
Methods inherited from class org.jboss.jdeparser.AbstractJDocCommentable
deprecated, docComment, writeDocComments
-
Methods inherited from class org.jboss.jdeparser.BasicJCommentable
blockComment, lineComment, writeComments
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.jdeparser.JAnnotatable
annotate, annotate, annotate
-
Methods inherited from interface org.jboss.jdeparser.JCommentable
blockComment, lineComment
-
Methods inherited from interface org.jboss.jdeparser.JDocCommentable
deprecated, docComment
-
-
-
-
Field Detail
-
owner
private final ImplJTry owner
-
-
Method Detail
-
add
public JVarDeclaration add(java.lang.String name, JExpr init)
Description copied from interface:JVarDeclarationAdd another item to this declaration. Subsequent items always have the same type as this item.- Specified by:
addin interfaceJVarDeclaration- Overrides:
addin classFirstJVarDeclaration- Parameters:
name- the variable nameinit- the variable initializer- Returns:
- the subsequent declaration
-
add
public JVarDeclaration add(java.lang.String name)
Description copied from interface:JVarDeclarationAdd another item to this declaration. Subsequent items always have the same type as this item.- Specified by:
addin interfaceJVarDeclaration- Overrides:
addin classFirstJVarDeclaration- Parameters:
name- the variable name- Returns:
- the subsequent declaration
-
-