Class ByteCodeGenerator
java.lang.Object
io.micronaut.sourcegen.generator.bytecode.ByteCodeGenerator
- All Implemented Interfaces:
SourceGenerator
Generates the classes directly by writing the bytecode.
- Since:
- 1.5
- Author:
- Denis Stepanov
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ByteCodeGenerator
public ByteCodeGenerator()
-
-
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
-
write
public void write(ObjectDef objectDef, io.micronaut.inject.visitor.VisitorContext context, io.micronaut.inject.ast.Element... originatingElements) Description copied from interface:SourceGenerator
Write the file using the context.- Specified by:
write
in interfaceSourceGenerator
- Parameters:
objectDef
- The object to writecontext
- The contextoriginatingElements
- the originated elements
-