Package org.springframework.aot.generate
Interface MethodGenerator
- All Known Implementing Classes:
 GeneratedMethods
- Functional Interface:
 - This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
 
Generates new 
GeneratedMethod instances.- Since:
 - 6.0
 - Author:
 - Phillip Webb
 - See Also:
 
- 
Method Summary
Modifier and TypeMethodDescriptiongenerateMethod(Object... methodNameParts) Generate a newGeneratedMethod.default MethodGeneratorReturn a newMethodGeneratorinstance that generates method with additional implicit method name parts. 
- 
Method Details
- 
generateMethod
Generate a newGeneratedMethod. The returned instance must define the method spec by callingusing(builder -> ...).- Parameters:
 methodNameParts- the method name parts that should be used to generate a unique method name- Returns:
 - the newly added 
GeneratedMethod 
 - 
withName
Return a newMethodGeneratorinstance that generates method with additional implicit method name parts. The final generated name will be of the following form:Original Updated run <name>Run getValue get<Name>Value setValue set<Name>Value isEnabled is<Name>Enabled - Parameters:
 nameParts- the implicit name parts- Returns:
 - a new 
MethodGeneratorinstance 
 
 -