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

Method getDeclaredField

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

Source from the content-addressed store, hash-verified

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_) {

Callers 10

mainMethod · 0.95
annotationsMethod · 0.80
genericTypeMethod · 0.80
MachineClass · 0.80
classDescMethod · 0.80
ConcurrentHashMapClass · 0.80
LockSupportClass · 0.80
AtomicIntegerClass · 0.80
AtomicLongClass · 0.80
AtomicReferenceClass · 0.80

Calls 1

findFieldMethod · 0.95

Tested by 3

mainMethod · 0.76
annotationsMethod · 0.64
genericTypeMethod · 0.64