Interface HasAnnotations<SELF extends HasAnnotations<SELF>>
- All Superinterfaces:
CanBeAnnotated
,HasDescription
- All Known Implementing Classes:
JavaClass
,JavaCodeUnit
,JavaConstructor
,JavaField
,JavaMember
,JavaMethod
,JavaPackage
,JavaStaticInitializer
@PublicAPI(usage=ACCESS) public interface HasAnnotations<SELF extends HasAnnotations<SELF>> extends CanBeAnnotated, HasDescription
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tngtech.archunit.core.domain.properties.CanBeAnnotated
CanBeAnnotated.Predicates, CanBeAnnotated.Utils
-
Method Summary
Modifier and Type Method Description <A extends java.lang.annotation.Annotation>
AgetAnnotationOfType(java.lang.Class<A> type)
JavaAnnotation<? extends SELF>
getAnnotationOfType(java.lang.String typeName)
java.util.Set<? extends JavaAnnotation<? extends SELF>>
getAnnotations()
<A extends java.lang.annotation.Annotation>
Optional<A>tryGetAnnotationOfType(java.lang.Class<A> type)
Optional<? extends JavaAnnotation<? extends SELF>>
tryGetAnnotationOfType(java.lang.String typeName)
Methods inherited from interface com.tngtech.archunit.core.domain.properties.CanBeAnnotated
isAnnotatedWith, isAnnotatedWith, isAnnotatedWith, isMetaAnnotatedWith, isMetaAnnotatedWith, isMetaAnnotatedWith
Methods inherited from interface com.tngtech.archunit.base.HasDescription
getDescription
-
Method Details
-
getAnnotations
-
getAnnotationOfType
@PublicAPI(usage=ACCESS) <A extends java.lang.annotation.Annotation> A getAnnotationOfType(java.lang.Class<A> type) -
getAnnotationOfType
@PublicAPI(usage=ACCESS) JavaAnnotation<? extends SELF> getAnnotationOfType(java.lang.String typeName) -
tryGetAnnotationOfType
@PublicAPI(usage=ACCESS) <A extends java.lang.annotation.Annotation> Optional<A> tryGetAnnotationOfType(java.lang.Class<A> type) -
tryGetAnnotationOfType
@PublicAPI(usage=ACCESS) Optional<? extends JavaAnnotation<? extends SELF>> tryGetAnnotationOfType(java.lang.String typeName)
-