Mega Code Archive

 
Categories / Java Book / 008 Reflection
 

0451 Get its class or interface

Class<?> getDeclaringClass() Returns the Class object representing the class or interface that declares the method represented by this Method object.