Package io.determann.shadow.api
Interface Annotationable<ELEMENT extends Element>
- All Superinterfaces:
ApiHolder,ElementBacked<ELEMENT>,Modifiable
- All Known Subinterfaces:
Annotation,AnnotationUsage,Class,Constructor,Declared,Enum,EnumConstant,Field,Generic,Interface,Method,Module,Package,Parameter,Record,RecordComponent,Variable<SURROUNDING>
- All Known Implementing Classes:
AnnotationUsageImpl,ClassImpl,DeclaredImpl,EnumConstantImpl,ExecutableImpl,FieldImpl,GenericImpl,InterfaceImpl,ModuleImpl,PackageImpl,ParameterImpl,RecordComponentImpl,RecordImpl,VariableImpl
anything that can be annotated
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<AnnotationUsage>returns all annotations.default List<AnnotationUsage>returns all direkt annotationsdefault Optional<AnnotationUsage>getDirectUsageOf(Annotation annotation) default AnnotationUsagegetDirectUsageOfOrThrow(Annotation annotation) default List<AnnotationUsage>getDirectUsagesOf(Annotation annotation) default Optional<AnnotationUsage>getUsageOf(Annotation annotation) default AnnotationUsagegetUsageOfOrThrow(Annotation annotation) default List<AnnotationUsage>getUsagesOf(Annotation annotation) default booleanisAnnotatedWith(Annotation annotation) default booleanisDirectlyAnnotatedWith(Annotation annotation) Methods inherited from interface io.determann.shadow.api.ElementBacked
getElement, getJavaDoc, getModifiers, getModule, getSimpleName, logError, logInfo, logWarningMethods inherited from interface io.determann.shadow.api.modifier.Modifiable
hasModifier
-
Method Details
-
getAnnotationUsages
returns all annotations. Annotations on parentClasses are included when they are annotated withInherited -
getUsagesOf
-
getUsageOf
-
getUsageOfOrThrow
-
isAnnotatedWith
-
getDirectAnnotationUsages
returns all direkt annotations- See Also:
-
getDirectUsagesOf
-
getDirectUsageOf
-
getDirectUsageOfOrThrow
-
isDirectlyAnnotatedWith
-