checkpoint
[sbp.git] / src / edu / berkeley / sbp / util / Reflection.java
index 24ef420..5c13668 100644 (file)
@@ -146,4 +146,13 @@ public final class Reflection {
         return true;
     }
 
+    public static Field getField(Class c, String s) {
+        try {
+            for(Field f : c.getDeclaredFields())
+                if (f.getName().equals(s))
+                    return f;
+        } catch (Exception e) { }
+        return null;
+    }
+
 }