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