Inject annotation. For non-private, no argument constructors, the member may
omit the annotation.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv abstract static class | InjectionPoint.
Node in the doubly-linked list of injectable members (fields and methods). |
| pack-priv static class | InjectionPoint.
Linked list of injectable members. |
| pack-priv static class | |
| pack-priv static class | InjectionPoint.
Keeps track of injectable methods so we can remove methods that get overridden in O(1) time. |
| pack-priv static enum | InjectionPoint.
Position in type hierarchy. |
| pack-priv static class | InjectionPoint.
A method signature. |
| Modifier and Type | Field and Description |
|---|---|
| private final TypeLiteral | |
| private final ImmutableList | |
| private static final Logger | |
| private final Member | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | checkForMisplacedBindingAnnotations(Member member, Errors errors)
Returns true if the binding annotation is in the wrong place. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public static <T> InjectionPoint | forConstructor(Constructor<T>
any single constructor present on constructor)type.Returns a new injection point for the specified constructor. |
| public static <T> InjectionPoint | forConstructor(Constructor<T>
any single constructor present on constructor, TypeLiteral<? extends T> type.the concrete type that defines type)constructor.Returns a new injection point for the specified constructor of |
| public static InjectionPoint | forConstructorOf(TypeLiteral<?>
a concrete type with exactly one constructor annotated @ type)Inject,
or a no-arguments constructor that is not private.Returns a new injection point for the injectable constructor of |
| public static InjectionPoint | forConstructorOf(TypeLiteral<?>
a concrete type with exactly one constructor annotated type, boolean @Inject, or a
no-arguments constructor that is not private.whether the constructor must be annotated with atInjectRequired)Inject.Returns a new injection point for the injectable constructor of |
| public static InjectionPoint | forConstructorOf(Class<?>
a concrete type with exactly one constructor annotated @ type)Inject,
or a no-arguments constructor that is not private.Returns a new injection point for the injectable constructor of |
| public static Set | Returns: a possibly empty set of injection points. The set has a specified iteration order. All fields are returned and then all methods. Within the fields, supertype fields are returned before subtype fields. Similarly, supertype methods are returned before subtype methods.Returns all instance method and field injection points on |
| public static Set | Returns: a possibly empty set of injection points. The set has a specified iteration order. All fields are returned and then all methods. Within the fields, supertype fields are returned before subtype fields. Similarly, supertype methods are returned before subtype methods.Returns all instance method and field injection points on |
| private ImmutableList | forMember(Errors errors, Member member, TypeLiteral<?> type, AnnotatedType[] annotatedTypes, Annotation[][] parameterAnnotationsPerParameter, Predicate<Integer> isParameterKotlinNullable)
|
| public static <T> InjectionPoint | forMethod(Method
any single method present on method, TypeLiteral<T> type.the concrete type that defines type)method.Returns a new injection point for the specified method of |
| public static Set | Returns: a possibly empty set of injection points. The set has a specified iteration order. All fields are returned and then all methods. Within the fields, supertype fields are returned before subtype fields. Similarly, supertype methods are returned before subtype methods.Returns all static method and field injection points on |
| public static Set | Returns: a possibly empty set of injection points. The set has a specified iteration order. All fields are returned and then all methods. Within the fields, supertype fields are returned before subtype fields. Similarly, supertype methods are returned before subtype methods.Returns all static method and field injection points on |
| public static Annotation[] | |
| pack-priv static Annotation | |
| private static Field[] | |
| private static Method[] | |
| public TypeLiteral | |
| public List | |
| private static Set | getInjectionPoints(final TypeLiteral<?> type, boolean
true is this method should return static members, false for instance members statics, Errors used to record errors errors)Returns an ordered, immutable set of injection points for the given type. |
| public Member | |
| public int | |
| private static List | |
| private static boolean | isEligibleForInjection(Method method, boolean statics)
Returns true if the method is eligible to be injected. |
| private static boolean | |
| public boolean | isOptional()
Returns true if this injection point shall be skipped if the injector cannot resolve bindings for all required dependencies. |
| public boolean | |
| private static boolean | |
| private <T> Dependency | |
| private static boolean | |
| public String |