Package io.servicetalk.utils.internal
Class ReflectionUtils
- java.lang.Object
-
- io.servicetalk.utils.internal.ReflectionUtils
-
public final class ReflectionUtils extends java.lang.ObjectProvide utilities to assist reflective access. This class is forked from the netty project and modified to suit our needs.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.reflect.MethodretrieveMethod(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?>... parameterTypes)Retrieves the specificMethodfrom theClasswithout checked exception.
-
-
-
Method Detail
-
retrieveMethod
public static java.lang.reflect.Method retrieveMethod(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?>... parameterTypes)Retrieves the specificMethodfrom theClasswithout checked exception.Throws
IllegalArgumentExceptionifNoSuchMethodExceptionis thrown.- Parameters:
clazz-Classto retrieve aMethodfromname- the name of the methodparameterTypes- the list of method parameters- Returns:
- the
Methodobject
-
-