Interface HasAnnotations<SELF extends HasAnnotations<SELF>>
- All Superinterfaces:
CanBeAnnotated
,HasDescription
- All Known Implementing Classes:
JavaClass
,JavaCodeUnit
,JavaConstructor
,JavaField
,JavaMember
,JavaMethod
,JavaPackage
,JavaParameter
,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 TypeMethodDescription<A extends Annotation>
AgetAnnotationOfType
(Class<A> type) JavaAnnotation<? extends SELF>
getAnnotationOfType
(String typeName) Set<? extends JavaAnnotation<? extends SELF>>
<A extends Annotation>
Optional<A>tryGetAnnotationOfType
(Class<A> type) Optional<? extends JavaAnnotation<? extends SELF>>
tryGetAnnotationOfType
(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
-
getAnnotationOfType
-
tryGetAnnotationOfType
-
tryGetAnnotationOfType
@PublicAPI(usage=ACCESS) Optional<? extends JavaAnnotation<? extends SELF>> tryGetAnnotationOfType(String typeName)
-