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... originatingElements)
Visits a new class and returns the output stream with which should be written the bytes of the class to be
generated.
|
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)
Deprecated.
|
java.util.Optional<GeneratedFile> |
visitMetaInfFile(java.lang.String path,
Element... originatingElements)
Visit a file within the META-INF directory of the classes directory.
|
finish, getServiceEntries, visitServiceDescriptor, writeServiceEntriesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitClass, visitServiceDescriptorpublic 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
ClassWriterOutputVisitorclassname - the fully qualified classnameoriginatingElement - The originating elementjava.io.IOException - if an error occurs creating the output streampublic java.io.OutputStream visitClass(java.lang.String classname,
Element... originatingElements)
throws java.io.IOException
ClassWriterOutputVisitor
Note that this method should only be called from a TypeElementVisitor.VisitorKind.AGGREGATING visitor from within the TypeElementVisitor.finish(io.micronaut.inject.visitor.VisitorContext) method. If the file
classname - the fully qualified classnameoriginatingElements - The originating elementsjava.io.IOException - if an error occurs creating the output stream@Deprecated public java.util.Optional<GeneratedFile> visitMetaInfFile(java.lang.String path)
ClassWriterOutputVisitorpath - The path to the filepublic java.util.Optional<GeneratedFile> visitMetaInfFile(java.lang.String path, Element... originatingElements)
ClassWriterOutputVisitorpath - The path to the fileoriginatingElements - The originating elementspublic java.util.Optional<GeneratedFile> visitGeneratedFile(java.lang.String path)
ClassWriterOutputVisitorpath - The path