Package io.micronaut.sourcegen
Class JavaPoetSourceGenerator
java.lang.Object
io.micronaut.sourcegen.JavaPoetSourceGenerator
- All Implemented Interfaces:
SourceGenerator
- Direct Known Subclasses:
GroovyPoetSourceGenerator
@Internal
public sealed class JavaPoetSourceGenerator
extends Object
implements SourceGenerator
permits GroovyPoetSourceGenerator
The Java source generator.
- Since:
- 1.0
- Author:
- Denis Stepanov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.inject.visitor.VisitorContext.Language
void
Write the source code.
-
Constructor Details
-
JavaPoetSourceGenerator
public JavaPoetSourceGenerator()
-
-
Method Details
-
getLanguage
public io.micronaut.inject.visitor.VisitorContext.Language getLanguage()- Specified by:
getLanguage
in interfaceSourceGenerator
- Returns:
- The source language of the generator
-
write
Description copied from interface:SourceGenerator
Write the source code.- Specified by:
write
in interfaceSourceGenerator
- Parameters:
objectDef
- The object definitionwriter
- The writer- Throws:
IOException
- The IO exception
-