/** * Get the names of classes that have a field with an annotation of the named type. * * @param annotationName * the name of the field annotation. * @return The sorted list of the names of classes that have a field with an annotation of the named type, or * the empty list if none. */ public List<String> getNamesOfClassesWithFieldAnnotation(final String annotationName) { if (!scanSpec.enableFieldAnnotationIndexing) { throw new IllegalArgumentException( "Please call FastClasspathScanner#enableFieldAnnotationIndexing() before calling scan() -- " + "field annotation indexing is disabled by default for efficiency"); } return classGraphBuilder.getNamesOfClassesWithFieldAnnotation(annotationName); }