(String name)
| 193 | } |
| 194 | |
| 195 | public Field getDeclaredField(String name) throws NoSuchFieldException { |
| 196 | int index = Classes.findField(vmClass, name); |
| 197 | if (index < 0) { |
| 198 | throw new NoSuchFieldException(name); |
| 199 | } else { |
| 200 | return new Field(vmClass.fieldTable[index]); |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | public Field getField(String name) throws NoSuchFieldException { |
| 205 | for (VMClass c = vmClass; c != null; c = c.super_) { |