Class AnnotationMockMetadata


  • public class AnnotationMockMetadata
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Class<? extends java.lang.annotation.Annotation> annotation  
      private java.lang.annotation.Annotation annotationInstance  
      private java.lang.reflect.Method[] methods  
      private java.lang.Object mock  
      private java.lang.String qualifier  
      private java.lang.Class<?> type  
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotationMockMetadata​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.reflect.Field field)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      private java.lang.String findQualifier()  
      java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotation()  
      private java.lang.reflect.Method[] getMethod()  
      java.lang.reflect.Method[] getMethods()  
      java.lang.Object getMock()  
      java.lang.String getQualifier()  
      java.lang.Class<?> getType()  
      int hashCode()  
      void setMock​(java.lang.Object mock)  
      • Methods inherited from class java.lang.Object

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

      • type

        private final java.lang.Class<?> type
      • methods

        private final java.lang.reflect.Method[] methods
      • qualifier

        private final java.lang.String qualifier
      • annotation

        private final java.lang.Class<? extends java.lang.annotation.Annotation> annotation
      • annotationInstance

        private final java.lang.annotation.Annotation annotationInstance
      • mock

        private java.lang.Object mock
    • Constructor Detail

      • AnnotationMockMetadata

        public AnnotationMockMetadata​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
                                      java.lang.reflect.Field field)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • findQualifier

        private java.lang.String findQualifier()
      • getQualifier

        public java.lang.String getQualifier()
      • getAnnotation

        public java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotation()
      • getType

        public java.lang.Class<?> getType()
      • getMethods

        public java.lang.reflect.Method[] getMethods()
      • getMethod

        private java.lang.reflect.Method[] getMethod()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getMock

        public java.lang.Object getMock()
      • setMock

        public void setMock​(java.lang.Object mock)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object