private boolean isMetaRoot(ClassInfo classInfo) { if (!classInfo.isAnnotation()) return false; if (classInfo.getName().equals("javax.annotation.Metatype")) return true; if (isSelfAnnotated(classInfo, "Metatype")) return true; if (isSelfAnnotated(classInfo, "Metaroot")) return false; for (AnnotationInfo annotationInfo : classInfo.getAnnotations()) { final ClassInfo annotation = classInfos.get(annotationInfo.getName()); if (annotation == null) return false; if (annotation.getName().equals("javax.annotation.Metaroot")) return true; if (isSelfAnnotated(annotation, "Metaroot")) return true; } return false; }
private boolean isMetaRoot(ClassInfo classInfo) { if (!classInfo.isAnnotation()) return false; if (classInfo.getName().equals("javax.annotation.Metatype")) return true; if (isSelfAnnotated(classInfo, "Metatype")) return true; if (isSelfAnnotated(classInfo, "Metaroot")) return false; for (AnnotationInfo annotationInfo : classInfo.getAnnotations()) { final ClassInfo annotation = classInfos.get(annotationInfo.getName()); if (annotation == null) return false; if (annotation.getName().equals("javax.annotation.Metaroot")) return true; if (isSelfAnnotated(annotation, "Metaroot")) return true; } return false; }
private boolean isMetaRoot(ClassInfo classInfo) { if (!classInfo.isAnnotation()) return false; if (classInfo.getName().equals("javax.annotation.Metatype")) return true; if (isSelfAnnotated(classInfo, "Metatype")) return true; if (isSelfAnnotated(classInfo, "Metaroot")) return false; for (AnnotationInfo annotationInfo : classInfo.getAnnotations()) { final ClassInfo annotation = classInfos.get(annotationInfo.getName()); if (annotation == null) return false; if (annotation.getName().equals("javax.annotation.Metaroot")) return true; if (isSelfAnnotated(annotation, "Metaroot")) return true; } return false; }
private boolean isSelfAnnotated(ClassInfo classInfo, String metatype) { if (!classInfo.isAnnotation()) return false; final String name = classInfo.getName(); if (!hasName(name, metatype)) return false; for (AnnotationInfo info : classInfo.getAnnotations()) { if (info.getName().equals(name)) return true; } return true; }
private boolean isSelfAnnotated(ClassInfo classInfo, String metatype) { if (!classInfo.isAnnotation()) return false; final String name = classInfo.getName(); if (!hasName(name, metatype)) return false; for (AnnotationInfo info : classInfo.getAnnotations()) { if (info.getName().equals(name)) return true; } return true; }
private boolean isSelfAnnotated(ClassInfo classInfo, String metatype) { if (!classInfo.isAnnotation()) return false; final String name = classInfo.getName(); if (!hasName(name, metatype)) return false; for (AnnotationInfo info : classInfo.getAnnotations()) { if (info.getName().equals(name)) return true; } return true; }