If I have an inner class e.g.
class Outer{ class Inner{} }
Is there any way to check if an arbitrary Object is an instance of
Object
you could always:
getClass().getName()
and do a String comparison.
EDIT : to account for inheritance (among inner classes? who would do that?!) you could always loop through getSuperclass() and check for them as well, and even go after implemented interfaces.
getSuperclass()