public class AnnotationProcessingOutputVisitor extends AbstractClassWriterOutputVisitor
ClassWriterOutputVisitor
for annotation processing.Constructor and Description |
---|
AnnotationProcessingOutputVisitor(javax.annotation.processing.Filer filer) |
Modifier and Type | Method and Description |
---|---|
java.io.OutputStream |
visitClass(java.lang.String classname,
Element originatingElement)
Visits a new class and returns the output stream with which should be written the bytes of the class to be
generated.
|
java.util.Optional<GeneratedFile> |
visitGeneratedFile(java.lang.String path)
Visit a file that will be generated within the generated sources directory.
|
java.util.Optional<GeneratedFile> |
visitMetaInfFile(java.lang.String path)
Visit a file within the META-INF directory of the classes directory.
|
finish, getServiceEntries, visitServiceDescriptor, writeServiceEntries
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitClass, visitServiceDescriptor
public AnnotationProcessingOutputVisitor(javax.annotation.processing.Filer filer)
filer
- The Filer
for creating new filespublic java.io.OutputStream visitClass(java.lang.String classname, @Nullable Element originatingElement) throws java.io.IOException
ClassWriterOutputVisitor
classname
- the fully qualified classnameoriginatingElement
- The originating elementjava.io.IOException
- if an error occurs creating the output streampublic java.util.Optional<GeneratedFile> visitMetaInfFile(java.lang.String path)
ClassWriterOutputVisitor
path
- The path to the filepublic java.util.Optional<GeneratedFile> visitGeneratedFile(java.lang.String path)
ClassWriterOutputVisitor
path
- The path