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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.jdeparser.JClassItem
JClassItem.Kind
-
Field Summary
FieldsFields inherited from interface org.jboss.jdeparser.JClassItem
SMART_NAME_SORT
-
Constructor Summary
ConstructorsConstructorDescriptionTryJVarDeclaration
(int mods, JType type, String name, JExpr value, ImplJTry owner) -
Method Summary
Modifier and TypeMethodDescriptionAdd another item to this declaration.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 Details
-
owner
-
-
Constructor Details
-
TryJVarDeclaration
-
-
Method Details
-
add
Description copied from interface:JVarDeclaration
Add another item to this declaration. Subsequent items always have the same type as this item.- Specified by:
add
in interfaceJVarDeclaration
- Overrides:
add
in classFirstJVarDeclaration
- Parameters:
name
- the variable nameinit
- the variable initializer- Returns:
- the subsequent declaration
-
add
Description copied from interface:JVarDeclaration
Add another item to this declaration. Subsequent items always have the same type as this item.- Specified by:
add
in interfaceJVarDeclaration
- Overrides:
add
in classFirstJVarDeclaration
- Parameters:
name
- the variable name- Returns:
- the subsequent declaration
-