Package org.springframework.aot.generate
Interface ClassGenerator.JavaFileGenerator
- Enclosing interface:
- ClassGenerator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy used to generate the java file for the generated class.
 Implementations of this interface are included as part of the key used to
 identify classes that have already been created and as such should be
 static final instances or implement a valid
 
equals/hashCode.- 
Method SummaryModifier and TypeMethodDescriptionorg.springframework.javapoet.JavaFilegenerateJavaFile(org.springframework.javapoet.ClassName className, GeneratedMethods methods) Generate the fileJavaFileto be written.default Collection<String>Return method names that must not be generated.
- 
Method Details- 
generateJavaFileorg.springframework.javapoet.JavaFile generateJavaFile(org.springframework.javapoet.ClassName className, GeneratedMethods methods) Generate the fileJavaFileto be written.- Parameters:
- className- the class name of the file
- methods- the generated methods that must be included
- Returns:
- the generated files
 
- 
getReservedMethodNamesReturn method names that must not be generated.- Returns:
- the reserved method names
 
 
-