I have an anonymous inner class inside another class (SomeClass
).
Both SomeClass.class.getClasses()
and SomeClass.class.getDeclaredClasses()
return empty arrays.
I couldn't find some hints on this in Class
' Javadocs.
Can anonymous inner classes be retrieved using reflection in some way?
What else are notable differences between anonymous inner classes and normal inner classes?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…