public abstract class MetaAnnotationUtil
extends java.lang.Object
Constructor and Description |
---|
MetaAnnotationUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.stream.Stream<PsiAnnotation> |
findMetaAnnotations(PsiModifierListOwner listOwner,
java.util.Collection<java.lang.String> annotations) |
static java.util.Collection<PsiClass> |
getAnnotatedTypes(Module module,
Key<CachedValue<java.util.Collection<PsiClass>>> key,
java.lang.String annotationName) |
static java.util.Collection<PsiClass> |
getAnnotationTypesWithChildren(Module module,
java.lang.String annotationName,
boolean includeTests) |
static java.util.Set<PsiClass> |
getChildren(PsiClass psiClass,
GlobalSearchScope scope) |
static boolean |
isMetaAnnotated(PsiModifierListOwner listOwner,
java.util.Collection<java.lang.String> annotations)
Checks if listOwner is annotated with annotations or listOwner's annotations contain given annotations.
|
static boolean |
isMetaAnnotatedInHierarchy(PsiModifierListOwner listOwner,
java.util.Collection<java.lang.String> annotations) |
public static java.util.Collection<PsiClass> getAnnotationTypesWithChildren(Module module, java.lang.String annotationName, boolean includeTests)
public static java.util.Set<PsiClass> getChildren(PsiClass psiClass, GlobalSearchScope scope)
public static java.util.Collection<PsiClass> getAnnotatedTypes(Module module, Key<CachedValue<java.util.Collection<PsiClass>>> key, java.lang.String annotationName)
public static boolean isMetaAnnotated(PsiModifierListOwner listOwner, java.util.Collection<java.lang.String> annotations)
public static boolean isMetaAnnotatedInHierarchy(PsiModifierListOwner listOwner, java.util.Collection<java.lang.String> annotations)
public static java.util.stream.Stream<PsiAnnotation> findMetaAnnotations(PsiModifierListOwner listOwner, java.util.Collection<java.lang.String> annotations)