MCPcopy Index your code
hub / github.com/antlr/codebuff / tryGetMethod

Method tryGetMethod

output/java/1.4.17/ObjectModelAdaptor.java:125–136  ·  view source on GitHub ↗
(Class<?> clazz, String methodName)

Source from the content-addressed store, hash-verified

123 }
124
125 protected static Method tryGetMethod(Class<?> clazz, String methodName) {
126 try {
127 Method method = clazz.getMethod(methodName);
128 if ( method!=null ) {
129 method.setAccessible(true);
130 }
131 return method;
132 }
133 catch (NoSuchMethodException ex) { }
134 catch (SecurityException ex) { }
135 return null;
136 }
137
138 protected static Field tryGetField(Class<?> clazz, String fieldName) {
139 try {

Callers 1

findMemberMethod · 0.95

Calls 1

setAccessibleMethod · 0.45

Tested by

no test coverage detected