Modifier and Type | Field and Description |
---|---|
private ActiveDescriptor<?> |
injecteeDescriptor |
private boolean |
isOptional |
private boolean |
isSelf |
private java.lang.reflect.AnnotatedElement |
parent |
private java.lang.Object |
parentIdentifier |
private java.lang.Class<?> |
pClass |
private int |
position |
private java.util.Set<java.lang.annotation.Annotation> |
qualifiers |
private java.lang.reflect.Type |
requiredType |
private Unqualified |
unqualified |
Constructor and Description |
---|
SystemInjecteeImpl(java.lang.reflect.Type requiredType,
java.util.Set<java.lang.annotation.Annotation> qualifiers,
int position,
java.lang.reflect.AnnotatedElement parent,
boolean isOptional,
boolean isSelf,
Unqualified unqualified,
ActiveDescriptor<?> injecteeDescriptor) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Class<?> |
getInjecteeClass()
Returns the parent class for this injectee.
|
ActiveDescriptor<?> |
getInjecteeDescriptor()
This returns the ActiveDescriptor of the injectee
if it is known
|
java.lang.reflect.AnnotatedElement |
getParent()
If this Injectee is in a constructor this will return the
constructor being injected into.
|
int |
getPosition()
If this Injectee is a constructor or method parameter, this will
return the index of the parameter.
|
java.util.Set<java.lang.annotation.Annotation> |
getRequiredQualifiers()
This is the set of required qualifiers for this injectee.
|
java.lang.reflect.Type |
getRequiredType()
This is the required type of the injectee.
|
Unqualified |
getUnqualified()
This method returns the
Unqualified annotation if it is present
on the injection point. |
int |
hashCode() |
boolean |
isOptional()
This method returns true if this injection point is annotated
with VOptional.
|
boolean |
isSelf()
This method returns true if this injection point is annotated
with VSelf.
|
(package private) void |
resetInjecteeDescriptor(ActiveDescriptor<?> injecteeDescriptor) |
java.lang.String |
toString() |
private final java.lang.reflect.Type requiredType
private final java.util.Set<java.lang.annotation.Annotation> qualifiers
private final int position
private final java.lang.Class<?> pClass
private final java.lang.reflect.AnnotatedElement parent
private final boolean isOptional
private final boolean isSelf
private final Unqualified unqualified
private ActiveDescriptor<?> injecteeDescriptor
private final java.lang.Object parentIdentifier
SystemInjecteeImpl(java.lang.reflect.Type requiredType, java.util.Set<java.lang.annotation.Annotation> qualifiers, int position, java.lang.reflect.AnnotatedElement parent, boolean isOptional, boolean isSelf, Unqualified unqualified, ActiveDescriptor<?> injecteeDescriptor)
public java.lang.reflect.Type getRequiredType()
Injectee
getRequiredType
in interface Injectee
public java.util.Set<java.lang.annotation.Annotation> getRequiredQualifiers()
Injectee
getRequiredQualifiers
in interface Injectee
public int getPosition()
Injectee
getPosition
in interface Injectee
public java.lang.Class<?> getInjecteeClass()
Injectee
getInjecteeClass
in interface Injectee
public java.lang.reflect.AnnotatedElement getParent()
Injectee
public boolean isOptional()
Injectee
isOptional
in interface Injectee
public boolean isSelf()
Injectee
ActiveDescriptor
, isOptional must be
false and the set of required qualifiers must be emptypublic Unqualified getUnqualified()
Injectee
Unqualified
annotation if it is present
on the injection point. This can be used to determine what qualifiers
should NOT be given to the injection point.getUnqualified
in interface Injectee
Unqualified
annotation on the injection point, or null
if there is no Unqualified
annotation on the injection pointpublic ActiveDescriptor<?> getInjecteeDescriptor()
Injectee
getInjecteeDescriptor
in interface Injectee
void resetInjecteeDescriptor(ActiveDescriptor<?> injecteeDescriptor)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object