for (AnnotationInstance ai : instances) { AnnotationTarget target = ai.target(); if (target.kind() == AnnotationTarget.Kind.CLASS) { Object value = ai.value().value(); if (value != null) {
instances.forEach(ai -> { AnnotationTarget target = ai.target(); if (target.kind() == AnnotationTarget.Kind.CLASS) { extractAndAddPackageInfo(target.asClass(), packages, indexView); instances.forEach(ai -> { AnnotationTarget target = ai.target(); switch (target.kind()) { case CLASS: extractAndAddPackageInfo(target.asClass(), packages, indexView);
Collection<AnnotationInstance> appPathAnnotations = index.getAnnotations(APP_PATH); for (AnnotationInstance annotation : appPathAnnotations) { if (annotation.target().kind() == AnnotationTarget.Kind.CLASS) { appPath = Optional.of(annotation.value().asString()); if (annotation.target().kind() == AnnotationTarget.Kind.CLASS) { ClassInfo classInfo = annotation.target().asClass();
Collection<AnnotationInstance> appPathAnnotations = index.getAnnotations(APP_PATH); for (AnnotationInstance annotation : appPathAnnotations) { if (annotation.target().kind() == AnnotationTarget.Kind.CLASS) { appPath = Optional.of(annotation.value().asString()); if (annotation.target().kind() == AnnotationTarget.Kind.CLASS) { ClassInfo classInfo = annotation.target().asClass();