Package org.jboss.jdeparser
Interface JAnnotatable
- All Known Subinterfaces:
JAnonymousClassDef
,JClassDef
,JEnumConstant
,JMethodDef
,JPackageInfoFile
,JParamDeclaration
,JVarDeclaration
public interface JAnnotatable
A program element which can be annotated.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptionannotate
(Class<? extends Annotation> type) Add an annotation.Add an annotation.Add an annotation.
-
Method Details
-
annotate
Add an annotation.- Parameters:
type
- the type of the annotation to add- Returns:
- the new annotation
-
annotate
Add an annotation.- Parameters:
type
- the type of the annotation to add- Returns:
- the new annotation
-
annotate
Add an annotation.- Parameters:
type
- the type of the annotation to add- Returns:
- the new annotation
-