Is it possible to get the containing class, if any...
# announcements
f
Is it possible to get the containing class, if any, using reflections? so basically the opposite direction of
nestedClasses
1
n
Copy code
javaClass.enclosingClass
?
it's not reflection, but you can also say
this@OuterClass
from within a nested inner class
f
oh cool the enclosing class is what i needed, thx
👍 1