public interface ClassWriterOutputVisitor
| Modifier and Type | Method and Description | 
|---|---|
void | 
finish()
Finish writing and flush any service entries to disk. 
 | 
default Map<String,Set<String>> | 
getServiceEntries()
The META-INF/services entries to write. 
 | 
OutputStream | 
visitClass(String classname)
Visits a new class and returns the output stream with which should be written the bytes of the class to be
 generated. 
 | 
Optional<GeneratedFile> | 
visitGeneratedFile(String path)
Visit a file that will be generated within the generated sources directory. 
 | 
Optional<GeneratedFile> | 
visitMetaInfFile(String path)
Visit a file within the META-INF directory of the classes directory. 
 | 
default void | 
visitServiceDescriptor(Class type,
                      String classname)
Allows adding a class that will be written to the  
META-INF/services file under the given type and class
 name. | 
void | 
visitServiceDescriptor(String type,
                      String classname)
Allows adding a class that will be written to the  
META-INF/services file under the given type and class
 name. | 
OutputStream visitClass(String classname) throws IOException
classname - the fully qualified classnameIOException - if an error occurs creating the output streamvoid visitServiceDescriptor(String type, String classname)
META-INF/services file under the given type and class
 name.type - the fully qualified service nameclassname - the fully qualified classnameIOException - If the file couldn't be createdOptional<GeneratedFile> visitMetaInfFile(String path)
path - The path to the fileIOException - If the file couldn't be createdOptional<GeneratedFile> visitGeneratedFile(String path)
path - The pathvoid finish()
default Map<String,Set<String>> getServiceEntries()
default void visitServiceDescriptor(Class type, String classname)
META-INF/services file under the given type and class
 name.type - The service typeclassname - the fully qualified classnameIOException - If the file couldn't be created