Interface SourceCodeWriter<S extends SourceCode<?,?>>
- Type Parameters:
S- the type of source code that can be written by this writer
- All Known Implementing Classes:
GroovySourceCodeWriter,JavaSourceCodeWriter,KotlinSourceCodeWriter
public interface SourceCodeWriter<S extends SourceCode<?,?>>
A writer for some
SourceCode.- Author:
- Andy Wilkinson
-
Method Summary
Modifier and TypeMethodDescriptionvoidwriteTo(SourceStructure structure, S sourceCode) Write, to the givenstructure, the givensourceCode.
-
Method Details
-
writeTo
Write, to the givenstructure, the givensourceCode.- Parameters:
structure- theSourceStructurebeneath which the source code is writtensourceCode- the source code to write- Throws:
IOException- if writing fails
-