List of usage examples for java.lang Class getEnclosingConstructor
@CallerSensitive public Constructor<?> getEnclosingConstructor() throws SecurityException
From source file:Main.java
public static void main(String[] args) { Class cls; cls = (new MyClass()).c.getClass(); System.out.print("getEnclosingConstructor() = "); System.out.println(cls.getEnclosingConstructor()); }