Class AutowiredArgumentsCodeGenerator
java.lang.Object
org.springframework.beans.factory.aot.AutowiredArgumentsCodeGenerator
Code generator to apply
AutowiredArguments
.
Generates code in the form: args.get(0), args.get(1)
or
args.get(0, String.class), args.get(1, Integer.class)
The simpler form is only used if the target method or constructor is unambiguous.
- Since:
- 6.0
- Author:
- Phillip Webb, Stephane Nicoll
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.javapoet.CodeBlock
generateCode
(Class<?>[] parameterTypes) org.springframework.javapoet.CodeBlock
generateCode
(Class<?>[] parameterTypes, int startIndex) org.springframework.javapoet.CodeBlock
generateCode
(Class<?>[] parameterTypes, int startIndex, String variableName)
-
Constructor Details
-
AutowiredArgumentsCodeGenerator
-
-
Method Details
-
generateCode
-
generateCode
public org.springframework.javapoet.CodeBlock generateCode(Class<?>[] parameterTypes, int startIndex) -
generateCode
-