Package org.springframework.aot.generate
Class GeneratedMethods
java.lang.Object
org.springframework.aot.generate.GeneratedMethods
A managed collection of generated methods.
- Since:
- 6.0
- Author:
- Phillip Webb, Stephane Nicoll
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionAdd a newGeneratedMethod
.Add a newGeneratedMethod
.withPrefix
(String prefix)
-
Method Details
-
add
public GeneratedMethod add(String suggestedName, Consumer<org.springframework.javapoet.MethodSpec.Builder> method) Add a newGeneratedMethod
.- Parameters:
suggestedName
- the suggested name for the methodmethod
- aConsumer
used to build method- Returns:
- the newly added
GeneratedMethod
-
add
public GeneratedMethod add(String[] suggestedNameParts, Consumer<org.springframework.javapoet.MethodSpec.Builder> method) Add a newGeneratedMethod
.- Parameters:
suggestedNameParts
- the suggested name parts for the methodmethod
- aConsumer
used to build method- Returns:
- the newly added
GeneratedMethod
-
withPrefix
-