关于反射机制中 Class.getConstructor()的疑问
中文API文档解释:
返回一个 Constructor 对象,它反映此 Class 对象所表示的类的指定公共构造方法。parameterTypes 参数是 Class 对象的一个数组,这些 Class 对象按声明顺序标识构造方法的形参类型。 如果此 Class 对象表示非静态上下文中声明的内部类,则形参类型作为第一个参数包括显示封闭的实例。
官方文档解释(局部):
* If this <code>Class</code> object represents an inner class
* declared in a non-static context, the formal parameter types
* include the explicit enclosing instance as the first parameter.
我问题是,红色那部分怎么理解, 谁可以帮忙举个例子?