Generates code in the form:
instance.age = value;
or instance.setAge(value);
Will also generate reflection based injection and register hints if the member is not visible.
| Modifier and Type | Field and Description |
|---|---|
| private final RuntimeHints | |
| private final ClassName |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private CodeBlock | |
| pack-priv CodeBlock | |
| private CodeBlock |
| hints | back to summary |
|---|---|
| private final RuntimeHints hints | |
| targetClassName | back to summary |
|---|---|
| private final ClassName targetClassName | |
| InjectionCodeGenerator | back to summary |
|---|---|
| pack-priv InjectionCodeGenerator(ClassName targetClassName, RuntimeHints hints) | |
| generateFieldInjectionCode | back to summary |
|---|---|
| private CodeBlock generateFieldInjectionCode(Field field, String instanceVariable, CodeBlock resourceToInject) | |
| generateInjectionCode | back to summary |
|---|---|
| pack-priv CodeBlock generateInjectionCode(Member member, String instanceVariable, CodeBlock resourceToInject) | |
| generateMethodInjectionCode | back to summary |
|---|---|
| private CodeBlock generateMethodInjectionCode(Method method, String instanceVariable, CodeBlock resourceToInject) | |