How to find out if an com.sun.jdi.ObjectReference instance is an enum? I can get the type of the instance with ObjectReference.type() which gives a ClassType back (if it is a class).
com.sun.jdi.ObjectReference
ObjectReference.type()
ClassType
Use the isEnum() method on com.sun.jdi.ClassType
isEnum()
com.sun.jdi.ClassType