Package org.jboss.jdeparser
Class SuccessorJVarDeclaration
java.lang.Object
org.jboss.jdeparser.SuccessorJVarDeclaration
- All Implemented Interfaces:
JAnnotatable
,JCommentable
,JDocCommentable
,JVarDeclaration
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSuccessorJVarDeclaration
(FirstJVarDeclaration first, String name, JExpr value) -
Method Summary
Modifier and TypeMethodDescriptionAdd another item to this declaration.Add another item to this declaration.annotate
(Class<? extends Annotation> type) Add an annotation.Add an annotation.Add an annotation.Add a block comment.Mark this program element as deprecated.Get or create the doc comment for this element.(package private) JExpr
getValue()
Add a line comment.name()
Get the variable name.type()
Get the variable type.
-
Field Details
-
first
-
name
-
value
-
-
Constructor Details
-
SuccessorJVarDeclaration
SuccessorJVarDeclaration(FirstJVarDeclaration first, String name, JExpr value)
-
-
Method Details
-
name
Description copied from interface:JVarDeclaration
Get the variable name.- Specified by:
name
in interfaceJVarDeclaration
- Returns:
- the variable name
-
getValue
JExpr getValue() -
blockComment
Description copied from interface:JCommentable
Add a block comment.- Specified by:
blockComment
in interfaceJCommentable
- Returns:
- the block comment body
-
lineComment
Description copied from interface:JCommentable
Add a line comment.- Specified by:
lineComment
in interfaceJCommentable
- Returns:
- the line comment body
-
deprecated
Description copied from interface:JDocCommentable
Mark this program element as deprecated.- Specified by:
deprecated
in interfaceJDocCommentable
- Returns:
- the deprecation tag body
-
docComment
Description copied from interface:JDocCommentable
Get or create the doc comment for this element.- Specified by:
docComment
in interfaceJDocCommentable
- Returns:
- the doc comment body
-
annotate
Description copied from interface:JAnnotatable
Add an annotation.- Specified by:
annotate
in interfaceJAnnotatable
- Parameters:
type
- the type of the annotation to add- Returns:
- the new annotation
-
annotate
Description copied from interface:JAnnotatable
Add an annotation.- Specified by:
annotate
in interfaceJAnnotatable
- Parameters:
type
- the type of the annotation to add- Returns:
- the new annotation
-
annotate
Description copied from interface:JAnnotatable
Add an annotation.- Specified by:
annotate
in interfaceJAnnotatable
- Parameters:
type
- the type of the annotation to add- Returns:
- the new annotation
-
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
- Parameters:
name
- the variable name- 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
- Parameters:
name
- the variable nameinit
- the variable initializer- Returns:
- the subsequent declaration
-
type
Description copied from interface:JVarDeclaration
Get the variable type.- Specified by:
type
in interfaceJVarDeclaration
- Returns:
- the variable type
-