MCPcopy Index your code
hub / github.com/clojure/clojure / getField

Method getField

src/jvm/clojure/lang/Reflector.java:515–524  ·  view source on GitHub ↗
(Class c, String name, boolean getStatics)

Source from the content-addressed store, hash-verified

513
514
515static 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
526static public List<Method> getMethods(Class c, int arity, String name, boolean getStatics){
527 Method[] allmethods = c.getMethods();

Callers 13

InstanceFieldExprMethod · 0.95
analyzeSymbolMethod · 0.95
getStaticFieldMethod · 0.95
setStaticFieldMethod · 0.95
getInstanceFieldMethod · 0.95
setInstanceFieldMethod · 0.95
invokeInstanceMemberMethod · 0.95
emitUnboxedMethod · 0.45
emitMethod · 0.45
StaticFieldExprMethod · 0.45
emitLocalMethod · 0.45

Calls 2

getNameMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected