Class JavaSourceCodeWriter
java.lang.Object
io.spring.initializr.generator.language.java.JavaSourceCodeWriter
- All Implemented Interfaces:
SourceCodeWriter<JavaSourceCode>
A
SourceCodeWriter
that writes SourceCode
in Java.- Author:
- Andy Wilkinson, Matt Berteaux, Moritz Halbritter
-
Constructor Summary
ConstructorsConstructorDescriptionJavaSourceCodeWriter
(IndentingWriterFactory indentingWriterFactory) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTo
(SourceStructure structure, JavaSourceCode sourceCode) Write, to the givenstructure
, the givensourceCode
.
-
Constructor Details
-
JavaSourceCodeWriter
Creates a new instance.- Parameters:
indentingWriterFactory
- theIndentingWriterFactory
to use
-
-
Method Details
-
writeTo
Description copied from interface:SourceCodeWriter
Write, to the givenstructure
, the givensourceCode
.- Specified by:
writeTo
in interfaceSourceCodeWriter<JavaSourceCode>
- Parameters:
structure
- theSourceStructure
beneath which the source code is writtensourceCode
- the source code to write- Throws:
IOException
- if writing fails
-