weld/subsystem/src/main/java/org/jboss/as/weld/util/Indices.java
public static List<ClassInfo> getAnnotatedClasses(List<AnnotationInstance> instances) {
        List<ClassInfo> result = new ArrayList<ClassInfo>();
        for (AnnotationInstance instance : instances) {
            AnnotationTarget target = instance.target();
            if (target instanceof ClassInfo) {
                result.add((ClassInfo) target);
            }
        }
        return result;
    }
public static List<ClassInfo> getAnnotatedClasses(List<AnnotationInstance> instances) {
        List<ClassInfo> result = new ArrayList<ClassInfo>();
        for (AnnotationInstance instance : instances) {
            AnnotationTarget target = instance.target();
            if (target instanceof ClassInfo) {
                result.add((ClassInfo) target);
            }
        }
        return result;
    }
public static List < ClassInfo > getAnnotatedClasses ( List < AnnotationInstance > instances ) { List < ClassInfo > result = new ArrayList < ClassInfo > ( ) ; for ( AnnotationInstance instance : instances ) { AnnotationTarget target = instance . target ( ) ; if ( target instanceof ClassInfo ) { result . add ( ( ClassInfo ) target ) ; } } return result ; }
Determines a list of classes the given annotation instances are defined on. If an annotation instance is not defined on a
class (e.g. on a member) this annotation instance is not reflected anyhow in the resulting list.
Determines a list of classes the given annotation instances are defined on . If an annotation instance is not defined on a class ( e . g . on a member ) this annotation instance is not reflected anyhow in the resulting list .