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

Method paramsTypesToString

app/src/main/java/cc/ioctl/tmoe/util/Reflex.java:106–122  ·  view source on GitHub ↗
(Class... c)

Source from the content-addressed store, hash-verified

104
105
106 public static String paramsTypesToString(Class... c) {
107 if (c == null) {
108 return null;
109 }
110 if (c.length == 0) {
111 return "()";
112 }
113 StringBuilder sb = new StringBuilder("(");
114 for (int i = 0; i < c.length; i++) {
115 sb.append(c[i] == null ? "[null]" : c[i].getName());
116 if (i != c.length - 1) {
117 sb.append(",");
118 }
119 }
120 sb.append(")");
121 return sb.toString();
122 }
123
124 public static Object invokeStaticAny(Class<?> clazz, Object... argsTypesAndReturnType)
125 throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, IllegalArgumentException {

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected