Class SourceCode<T extends TypeDeclaration,C extends CompilationUnit<T>>
java.lang.Object
io.spring.initializr.generator.language.SourceCode<T,C>
- Type Parameters:
T
- typesC
- compilation units
- Direct Known Subclasses:
GroovySourceCode
,JavaSourceCode
,KotlinSourceCode
public abstract class SourceCode<T extends TypeDeclaration,C extends CompilationUnit<T>>
extends Object
Representation of application source code.
- Author:
- Andy Wilkinson
-
Constructor Summary
ModifierConstructorDescriptionprotected
SourceCode
(BiFunction<String, String, C> compilationUnitFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateCompilationUnit
(String packageName, String name) Returns an unmodifiable view of thecompilation units
.
-
Constructor Details
-
SourceCode
-
-
Method Details
-
createCompilationUnit
-
getCompilationUnits
Returns an unmodifiable view of thecompilation units
.- Returns:
- the compilation units
-