public static int jlClassGetModifiers ( Class < ? > clazz ) { // ReloadableType rtype = getReloadableTypeIfHasBeenReloaded(clazz); ReloadableType rtype = getRType ( clazz ) ; if ( rtype == null ) { return clazz . getModifiers ( ) ; } else { //Note: the "super bit" may be set in class modifiers but we should block it out, it //shouldn't be shown to users of the reflection API. return rtype . getLatestTypeDescriptor ( ) . getModifiers ( ) & ~ Opcodes . ACC_SUPER ; } }
Retrieve modifiers for a Java class which might or might not be reloadable or reloaded .