private boolean analysisContextContained(XClass xclass) { AnnotatedObject ao = xclass; do { if (ao.getAnnotation(AnalysisContextContainedAnnotation) != null) { return true; } ao = ao.getContainingScope(); } while (ao != null); return false; } @Override
/** * Populate Set of TypeQualifierAnnotations for given AnnotatedObject, * taking into account annotations applied to outer scopes (e.g., enclosing * classes and packages.) * * @param result * Set of TypeQualifierAnnotations * @param o * an AnnotatedObject * @param e * ElementType representing kind of AnnotatedObject */ private static void getApplicableScopedApplications(Set<TypeQualifierAnnotation> result, AnnotatedObject o, ElementType e) { if (!o.isSynthetic()) { AnnotatedObject outer = o.getContainingScope(); if (outer != null) { getApplicableScopedApplications(result, outer, e); } } getDirectApplications(result, o, e); }
o = o.getContainingScope(); if (o == null) { return null;
private boolean analysisContextContained(XClass xclass) { AnnotatedObject ao = xclass; do { if (ao.getAnnotation(AnalysisContextContainedAnnotation) != null) { return true; } ao = ao.getContainingScope(); } while (ao != null); return false; } @Override
/** * Populate Set of TypeQualifierAnnotations for given AnnotatedObject, * taking into account annotations applied to outer scopes (e.g., enclosing * classes and packages.) * * @param result * Set of TypeQualifierAnnotations * @param o * an AnnotatedObject * @param e * ElementType representing kind of AnnotatedObject */ private static void getApplicableScopedApplications(Set<TypeQualifierAnnotation> result, AnnotatedObject o, ElementType e) { if (!o.isSynthetic()) { AnnotatedObject outer = o.getContainingScope(); if (outer != null) { getApplicableScopedApplications(result, outer, e); } } getDirectApplications(result, o, e); }
o = o.getContainingScope(); if (o == null) { return null;