Class MethodInfoReflectiveImpl

  • All Implemented Interfaces:
    MemberInfo, MethodInfo

    @Immutable
    public class MethodInfoReflectiveImpl
    extends MethodInfoBase
    Implementation of MethodInfo interface for actual Method. Note that this internally caches the Method, and so all the usual precautions for storing instances of this class in maps apply.
    • Field Detail

      • method

        private java.lang.reflect.Method method
      • constructor

        private java.lang.reflect.Constructor constructor
    • Constructor Detail

      • MethodInfoReflectiveImpl

        public MethodInfoReflectiveImpl​(ClassInfo cinfo,
                                        java.lang.reflect.Constructor constructor)
      • MethodInfoReflectiveImpl

        public MethodInfoReflectiveImpl​(ClassInfo cinfo,
                                        java.lang.reflect.Method method)
    • Method Detail

      • init

        private void init​(java.lang.Class<?>[] exceptions,
                          java.lang.Class<?>[] arguments)
      • getMethod

        public java.lang.reflect.Method getMethod()
        Description copied from interface: MethodInfo
        Return the Method that is represented by this MethodInfo, or null if no such Method instance exists (because this MethodInfo represents a Method being generated, rather than a Method in a Class that is loaded into the VM).
        Specified by:
        getMethod in interface MethodInfo
        Overrides:
        getMethod in class MethodInfoBase
      • getConstructor

        public java.lang.reflect.Constructor getConstructor()
        Description copied from interface: MethodInfo
        Return the Constructor that is represented by this MethodInfo, or null if no such Constructor instance exists (because this MethodInfo represents a Constructor being generated, rather than a Constructor in a Class that is loaded into the VM).
        Specified by:
        getConstructor in interface MethodInfo
        Overrides:
        getConstructor in class MethodInfoBase