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) JExprgetValue()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:JVarDeclarationGet the variable name.- Specified by:
namein interfaceJVarDeclaration- Returns:
- the variable name
-
getValue
JExpr getValue() -
blockComment
Description copied from interface:JCommentableAdd a block comment.- Specified by:
blockCommentin interfaceJCommentable- Returns:
- the block comment body
-
lineComment
Description copied from interface:JCommentableAdd a line comment.- Specified by:
lineCommentin interfaceJCommentable- Returns:
- the line comment body
-
deprecated
Description copied from interface:JDocCommentableMark this program element as deprecated.- Specified by:
deprecatedin interfaceJDocCommentable- Returns:
- the deprecation tag body
-
docComment
Description copied from interface:JDocCommentableGet or create the doc comment for this element.- Specified by:
docCommentin interfaceJDocCommentable- Returns:
- the doc comment body
-
annotate
Description copied from interface:JAnnotatableAdd an annotation.- Specified by:
annotatein interfaceJAnnotatable- Parameters:
type- the type of the annotation to add- Returns:
- the new annotation
-
annotate
Description copied from interface:JAnnotatableAdd an annotation.- Specified by:
annotatein interfaceJAnnotatable- Parameters:
type- the type of the annotation to add- Returns:
- the new annotation
-
annotate
Description copied from interface:JAnnotatableAdd an annotation.- Specified by:
annotatein interfaceJAnnotatable- Parameters:
type- the type of the annotation to add- Returns:
- the new annotation
-
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- Parameters:
name- the variable name- 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- Parameters:
name- the variable nameinit- the variable initializer- Returns:
- the subsequent declaration
-
type
Description copied from interface:JVarDeclarationGet the variable type.- Specified by:
typein interfaceJVarDeclaration- Returns:
- the variable type
-