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