/** * Returns the modifiers for the reference type. ACC_PUBLIC, ACC_FINAL, etc. Undefined for arrays * and primitive type. * * @return the class modifiers in JVM Spec format. */ public int getModifiers() { return klass.getModifiers() & Modifier.getJVMClassModifiers(); }
/** * @return the modifiers for this method * @see Modifier#getJVMFielddModifiers */ public int getModifiers() { return field.getModifiers() & Modifier.getJVMFieldModifiers(); }