Class BasicJAnnotatable
java.lang.Object
org.jboss.jdeparser.BasicJCommentable
org.jboss.jdeparser.AbstractJDocCommentable
org.jboss.jdeparser.BasicJAnnotatable
- All Implemented Interfaces:
JAnnotatable, JCommentable, JDocCommentable
- Direct Known Subclasses:
AbstractJGeneric, FirstJVarDeclaration, ImplJEnumConstant, ImplJParamDeclaration
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ImplJAnnotationadd(ImplJAnnotation item) annotate(Class<? extends Annotation> type) Add an annotation.Add an annotation.Add an annotation.(package private) voidwriteAnnotations(SourceFileWriter writer, FormatPreferences.Space space) Methods 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 JCommentable
blockComment, lineComment
-
Field Details
-
annotations
-
-
Constructor Details
-
BasicJAnnotatable
BasicJAnnotatable()
-
-
Method Details
-
add
-
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
-
writeAnnotations
- Throws:
IOException
-