public class InjectorInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.List<FinderInfo> |
finderParams
Finders which are registered as parameters.
|
javax.lang.model.element.ExecutableElement |
injector
The
ExecutableElement corresponding to the injector method. |
java.lang.String |
name
The generated name of this class.
|
java.lang.String |
outputPackage
The output packages.
|
java.lang.String |
reason
The reason for the injection.
|
MethodContainer |
target
The
MethodContainer corresponding to the target method. |
javax.lang.model.element.ExecutableElement |
targetStub
The
ExecutableElement corresponding to the target method stub. |
| Constructor and Description |
|---|
InjectorInfo(java.lang.String name,
javax.lang.model.element.ExecutableElement injector,
javax.lang.model.element.ExecutableElement targetStub,
Target targetAnn,
ProcessorOptions options)
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MethodSpec |
generateInjector(ProcessorOptions options)
Generates the wrapper around a certain injector.
|
public final java.lang.String name
public final javax.lang.model.element.ExecutableElement injector
ExecutableElement corresponding to the injector method.public final javax.lang.model.element.ExecutableElement targetStub
ExecutableElement corresponding to the target method stub.public final java.lang.String reason
public final java.lang.String outputPackage
public final MethodContainer target
MethodContainer corresponding to the target method.public final java.util.List<FinderInfo> finderParams
public InjectorInfo(java.lang.String name,
javax.lang.model.element.ExecutableElement injector,
javax.lang.model.element.ExecutableElement targetStub,
Target targetAnn,
ProcessorOptions options)
name - the generated nameinjector - the injector ExecutableElementtargetStub - the target ExecutableElementtargetAnn - the relevant Target annotationoptions - the ProcessorOptions to be usedpublic MethodSpec generateInjector(ProcessorOptions options)
options - the ProcessorOptions for this operationMethodSpec for the injector