(Class c, String name, boolean getStatics)
| 513 | |
| 514 | |
| 515 | static public Field getField(Class c, String name, boolean getStatics){ |
| 516 | Field[] allfields = c.getFields(); |
| 517 | for(int i = 0; i < allfields.length; i++) |
| 518 | { |
| 519 | if(name.equals(allfields[i].getName()) |
| 520 | && Modifier.isStatic(allfields[i].getModifiers()) == getStatics) |
| 521 | return allfields[i]; |
| 522 | } |
| 523 | return null; |
| 524 | } |
| 525 | |
| 526 | static public List<Method> getMethods(Class c, int arity, String name, boolean getStatics){ |
| 527 | Method[] allmethods = c.getMethods(); |
no test coverage detected