Skip to content

Commit 2fde7a9

Browse files
Treiblesschorlegselzer
authored andcommitted
WIP: expose methods from GentyRef
1 parent 320d4bf commit 2fde7a9

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

src/main/java/org/scijava/util/Types.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,29 @@ public static Type parameterizeRaw(Class<?> rawType) {
12951295
return Types.parameterize(rawType, typeParams);
12961296
}
12971297

1298+
/**
1299+
* See {@link GenericTypeReflector#getExactParameterTypes(Method, Type)}
1300+
*
1301+
* @param m
1302+
* @param type
1303+
* @return
1304+
*/
1305+
public static Type[] getExactParameterTypes(final Method m,
1306+
final Type type){
1307+
return GenericTypeReflector.getExactParameterTypes(m, type);
1308+
}
1309+
1310+
/**
1311+
* See {@link GenericTypeReflector#getExactReturnType(Method, Type)}
1312+
*
1313+
* @param m
1314+
* @param type
1315+
* @return
1316+
*/
1317+
public static Type getExactReturnType(final Method m, final Type type) {
1318+
return GenericTypeReflector.getExactReturnType(m, type);
1319+
}
1320+
12981321
// -- Helper methods --
12991322

13001323
private static Type[] filterIndices(Type[] types, List<Integer> indices) {

0 commit comments

Comments
 (0)