final class HiddenSource extends java.lang.Object implements Hidden, AnnotatedSource
Hidden that can also act as an @AnnotatedSource.| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
source |
| Constructor and Description |
|---|
HiddenSource(java.lang.Object source) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends java.lang.annotation.Annotation> |
annotationType() |
boolean |
equals(java.lang.Object rhs) |
<T extends java.lang.annotation.Annotation> |
getAnnotation(com.google.inject.Binding<?> binding,
java.lang.Class<T> annotationType)
Returns the annotation of the given type that is associated with the binding.
|
int |
hashCode() |
java.lang.String |
toString() |
HiddenSource(java.lang.Object source)
source - The owning sourcepublic java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
annotationType in interface java.lang.annotation.Annotationpublic int hashCode()
hashCode in interface java.lang.annotation.AnnotationhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object rhs)
equals in interface java.lang.annotation.Annotationequals in class java.lang.Objectpublic java.lang.String toString()
toString in interface java.lang.annotation.AnnotationtoString in class java.lang.Objectpublic <T extends java.lang.annotation.Annotation> T getAnnotation(com.google.inject.Binding<?> binding,
java.lang.Class<T> annotationType)
AnnotatedSourcegetAnnotation in interface AnnotatedSourcebinding - The bindingannotationType - The annotation typenull if no such annotation exists