Class InstanceFactory<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Executable executable  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected InstanceFactory​(java.lang.reflect.Executable executable)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) <A extends java.lang.annotation.Annotation>
      A
      getAnnotation​(java.lang.Class<A> annotationClass)  
      (package private) <A extends java.lang.annotation.Annotation>
      A
      getAnnotationIncludingType​(java.lang.Class<A> annotationClass)  
      (package private) java.lang.Class<?> getDeclaringClass()  
      (package private) int getParameterCount()  
      (package private) java.lang.reflect.Parameter[] getParameters()  
      (package private) abstract T newInstance​(java.lang.Object... params)  
      abstract java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • executable

        private final java.lang.reflect.Executable executable
    • Constructor Detail

      • InstanceFactory

        protected InstanceFactory​(java.lang.reflect.Executable executable)
    • Method Detail

      • getDeclaringClass

        java.lang.Class<?> getDeclaringClass()
      • getParameterCount

        int getParameterCount()
      • getParameters

        java.lang.reflect.Parameter[] getParameters()
      • getAnnotation

        @Nullable
        <A extends java.lang.annotation.Annotation> A getAnnotation​(java.lang.Class<A> annotationClass)
      • getAnnotationIncludingType

        @Nullable
        <A extends java.lang.annotation.Annotation> A getAnnotationIncludingType​(java.lang.Class<A> annotationClass)
      • newInstance

        abstract T newInstance​(java.lang.Object... params)
      • toString

        public abstract java.lang.String toString()
        Overrides:
        toString in class java.lang.Object