static class InjectionPoint.OverrideIndex
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<InjectionPoint.Signature,java.util.List<InjectionPoint.InjectableMethod>> |
bySignature |
(package private) InjectionPoint.InjectableMembers |
injectableMembers |
(package private) java.lang.reflect.Method |
lastMethod |
(package private) InjectionPoint.Signature |
lastSignature |
(package private) InjectionPoint.Position |
position |
Constructor and Description |
---|
OverrideIndex(InjectionPoint.InjectableMembers injectableMembers) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
add(InjectionPoint.InjectableMethod injectableMethod)
Adds the given method to the list of injection points.
|
(package private) boolean |
removeIfOverriddenBy(java.lang.reflect.Method method,
boolean alwaysRemove,
InjectionPoint.InjectableMethod injectableMethod)
Removes a method overridden by the given method, if present.
|
final InjectionPoint.InjectableMembers injectableMembers
java.util.Map<InjectionPoint.Signature,java.util.List<InjectionPoint.InjectableMethod>> bySignature
InjectionPoint.Position position
java.lang.reflect.Method lastMethod
InjectionPoint.Signature lastSignature
OverrideIndex(InjectionPoint.InjectableMembers injectableMembers)
boolean removeIfOverriddenBy(java.lang.reflect.Method method, boolean alwaysRemove, InjectionPoint.InjectableMethod injectableMethod)
method
- The method used to determine what is overridden and should be
removed.alwaysRemove
- true if overridden methods should be removed even if they were
guice @InjectinjectableMethod
- if this method overrode any guice @Inject methods,
InjectionPoint.InjectableMethod.overrodeGuiceInject
is set to truevoid add(InjectionPoint.InjectableMethod injectableMethod)