MCPcopy Create free account
hub / github.com/ReadyTalk/avian / getField

Method getField

classpath/java/lang/Class.java:204–212  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

202 }
203
204 public Field getField(String name) throws NoSuchFieldException {
205 for (VMClass c = vmClass; c != null; c = c.super_) {
206 int index = Classes.findField(c, name);
207 if (index >= 0) {
208 return new Field(vmClass.fieldTable[index]);
209 }
210 }
211 throw new NoSuchFieldException(name);
212 }
213
214 public Method getDeclaredMethod(String name, Class ... parameterTypes)
215 throws NoSuchMethodException

Callers 6

mainMethod · 0.80
genericTypeMethod · 0.80
mainMethod · 0.80
classDescMethod · 0.80
classDescMethod · 0.80

Calls 1

findFieldMethod · 0.95

Tested by 3

mainMethod · 0.64
genericTypeMethod · 0.64
mainMethod · 0.64