@Internal public class DirectoryClassWriterOutputVisitor extends AbstractClassWriterOutputVisitor
ClassWriterOutputVisitor
that writes to a target target directory.Constructor and Description |
---|
DirectoryClassWriterOutputVisitor(java.io.File targetDir) |
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 DirectoryClassWriterOutputVisitor(java.io.File targetDir)
targetDir
- The target directorypublic 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