예제 #1
0
 private boolean _isIncludableField(Field f) {
   /* I'm pretty sure synthetic fields are to be skipped...
    * (methods definitely are)
    */
   if (f.isSynthetic()) {
     return false;
   }
   // Static fields are never included, nor transient
   int mods = f.getModifiers();
   if (Modifier.isStatic(mods) || Modifier.isTransient(mods)) {
     return false;
   }
   return true;
 }
예제 #2
0
 public boolean storeableField(Class a_class, Field a_field) {
   return (!Modifier.isStatic(a_field.getModifiers()))
       && (!Modifier.isTransient(a_field.getModifiers()) & !(a_field.getName().indexOf("$") > -1));
 }