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

Method tryGetMethod

output/java8/1.4.13/ObjectModelAdaptor.java:122–135  ·  view source on GitHub ↗
(Class<?> clazz, String methodName)

Source from the content-addressed store, hash-verified

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

Callers 1

findMemberMethod · 0.95

Calls 1

setAccessibleMethod · 0.45

Tested by

no test coverage detected