Beispiel #1
0
 /**
  * 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();
 }
Beispiel #2
0
 /**
  * @return the modifiers for this method
  * @see Modifier#getJVMFielddModifiers
  */
 public int getModifiers() {
   return field.getModifiers() & Modifier.getJVMFieldModifiers();
 }