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.
| Modifier and Type | Field and Description |
|---|---|
| private final Executable | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CodeBlock | |
| public CodeBlock | |
| public CodeBlock | |
| private boolean | |
| private boolean |
| executable | back to summary |
|---|---|
| private final Executable executable | |
| target | back to summary |
|---|---|
| private final Class<?> target | |
| AutowiredArgumentsCodeGenerator | back to summary |
|---|---|
| public AutowiredArgumentsCodeGenerator(Class<?> target, Executable executable) | |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(Class<?>[] parameterTypes) | |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(Class<?>[] parameterTypes, int startIndex) | |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(Class<?>[] parameterTypes, int startIndex, String variableName) | |
| hasSameParameterCount | back to summary |
|---|---|
| private boolean hasSameParameterCount(Executable executable) | |
| isAmbiguous | back to summary |
|---|---|
| private boolean isAmbiguous() | |