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 JClassItem
JClassItem.Kind -
Field Summary
FieldsFields inherited from interface 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 FirstJVarDeclaration
getItemKind, getModifiers, getName, hasAllModifiers, hasAnyModifier, mods, name, type, write, write, writeNoSemiMethods inherited from class BasicJAnnotatable
annotate, annotate, annotate, writeAnnotationsMethods inherited from class AbstractJDocCommentable
deprecated, docComment, writeDocCommentsMethods inherited from class BasicJCommentable
blockComment, lineComment, writeCommentsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JAnnotatable
annotate, annotate, annotateMethods inherited from interface JCommentable
blockComment, lineCommentMethods inherited from interface JDocCommentable
deprecated, docComment
-
Field Details
-
owner
-
-
Constructor Details
-
TryJVarDeclaration
-
-
Method Details
-
add
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
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
-