/** * Get the annotations that have this direct meta-annotation. * * @return the set of annotations that have this direct meta-annotation, or the empty set if none. */ public Set<ClassInfo> getAnnotationsWithDirectMetaAnnotation() { return !isAnnotation() ? Collections.<ClassInfo> emptySet() : filterClassInfo(getDirectlyRelatedClasses(RelType.CLASSES_WITH_CLASS_ANNOTATION), /* removeExternalClassesIfStrictWhitelist = */ true, scanSpec, ClassType.ANNOTATION); }
/** * Get the annotations and meta-annotations on this annotation class. * * @return the set of annotations and meta-annotations, if this is an annotation class, or the empty set if none * (or if this is not an annotation class). */ public Set<ClassInfo> getMetaAnnotations() { return !isAnnotation() ? Collections.<ClassInfo> emptySet() : filterClassInfo(getReachableClasses(RelType.CLASS_ANNOTATIONS), /* removeExternalClassesIfStrictWhitelist = */ true, scanSpec, ClassType.ALL); }
/** * Get the annotations that have this meta-annotation. * * @return the set of annotations that have this meta-annotation, or the empty set if none. */ public Set<ClassInfo> getAnnotationsWithMetaAnnotation() { return !isAnnotation() ? Collections.<ClassInfo> emptySet() : filterClassInfo(getReachableClasses(RelType.CLASSES_WITH_CLASS_ANNOTATION), /* removeExternalClassesIfStrictWhitelist = */ true, scanSpec, ClassType.ANNOTATION); }
if (!isAnnotation()) { return Collections.<ClassInfo> emptySet();
|| includeStandardClasses && classInfo.isStandardClass() || includeImplementedInterfaces && classInfo.isImplementedInterface() || includeAnnotations && classInfo.isAnnotation()) {
: ci.isAnnotation() ? "@interface" : ci.isInterface() ? "interface" : "class") + "</td></tr>");
private void writeClass(ApiPrintWriter writer, ClassInfo classInfo) { if (classInfo.isAnnotation()) { writer.println(classInfo, INTERFACE_MASK, emptyList()); } else if (classInfo.isStandardClass()) { writer.println(classInfo, CLASS_MASK, toNames(readClassAnnotationsFor(classInfo)).visible); } else { writer.println(classInfo, INTERFACE_MASK, toNames(readInterfaceAnnotationsFor(classInfo)).visible); } }
public void println(ClassInfo classInfo, int modifierMask, List<String> filteredAnnotations) { append(asAnnotations(filteredAnnotations, "")); append(Modifier.toString(classInfo.getClassRef().getModifiers() & modifierMask)); if (classInfo.isAnnotation()) {
if (classInfo.isAnnotation() && !isVisibleAnnotation(className)) {