Class HiddenSource

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object source  
    • Constructor Summary

      Constructors 
      Constructor Description
      HiddenSource​(java.lang.Object source)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()  
      boolean equals​(java.lang.Object rhs)  
      <T extends java.lang.annotation.Annotation>
      T
      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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • source

        private final java.lang.Object source
    • Constructor Detail

      • HiddenSource

        HiddenSource​(java.lang.Object source)
        Parameters:
        source - The owning source
    • Method Detail

      • annotationType

        public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
        Specified by:
        annotationType in interface java.lang.annotation.Annotation
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.lang.annotation.Annotation
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object rhs)
        Specified by:
        equals in interface java.lang.annotation.Annotation
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.lang.annotation.Annotation
        Overrides:
        toString in class java.lang.Object
      • getAnnotation

        public <T extends java.lang.annotation.Annotation> T getAnnotation​(com.google.inject.Binding<?> binding,
                                                                           java.lang.Class<T> annotationType)
        Description copied from interface: AnnotatedSource
        Returns the annotation of the given type that is associated with the binding.
        Specified by:
        getAnnotation in interface AnnotatedSource
        Parameters:
        binding - The binding
        annotationType - The annotation type
        Returns:
        The associated annotation; null if no such annotation exists