Class SourceCode<T extends TypeDeclaration,C extends CompilationUnit<T>>

java.lang.Object
io.spring.initializr.generator.language.SourceCode<T,C>
Type Parameters:
T - types
C - 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 Details

  • Method Details

    • createCompilationUnit

      public C createCompilationUnit(String packageName, String name)
    • getCompilationUnits

      public List<C> getCompilationUnits()
      Returns an unmodifiable view of the compilation units.
      Returns:
      the compilation units