MCPcopy Create free account
hub / github.com/cinit/TMoe / hasMethod

Method hasMethod

app/src/main/java/cc/ioctl/tmoe/util/Reflex.java:929–941  ·  view source on GitHub ↗
(Object obj, String name, Object... argsTypesAndReturnType)

Source from the content-addressed store, hash-verified

927 }
928
929 public static Method hasMethod(Object obj, String name, Object... argsTypesAndReturnType)
930 throws IllegalArgumentException {
931 Class clazz;
932 if (obj == null) {
933 throw new NullPointerException("obj/clazz == null");
934 }
935 if (obj instanceof Class) {
936 clazz = (Class) obj;
937 } else {
938 clazz = obj.getClass();
939 }
940 return hasMethod(clazz, name, argsTypesAndReturnType);
941 }
942
943 public static Method hasMethod(Class clazz, String name, Object... argsTypesAndReturnType)
944 throws IllegalArgumentException {

Callers

nothing calls this directly

Calls 3

getParameterTypesMethod · 0.80
getReturnTypeMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected