Package com.liferay.petra.reflect
Class ReflectionUtil
java.lang.Object
com.liferay.petra.reflect.ReflectionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldgetDeclaredField(Class<?> clazz, String name) static Field[]getDeclaredFields(Class<?> clazz) static MethodgetDeclaredMethod(Class<?> clazz, String name, Class<?>... parameterTypes) static MethodHandles.Lookupstatic Class<?>[]getInterfaces(Object object) static Class<?>[]getInterfaces(Object object, ClassLoader classLoader) static Class<?>[]getInterfaces(Object object, ClassLoader classLoader, Consumer<ClassNotFoundException> classNotFoundHandler) static <T> TthrowException(Throwable throwable)
-
Constructor Details
-
ReflectionUtil
public ReflectionUtil()
-
-
Method Details
-
getDeclaredField
- Throws:
Exception
-
getDeclaredFields
- Throws:
Exception
-
getDeclaredMethod
public static Method getDeclaredMethod(Class<?> clazz, String name, Class<?>... parameterTypes) throws Exception - Throws:
Exception
-
getImplLookup
-
getInterfaces
-
getInterfaces
-
getInterfaces
public static Class<?>[] getInterfaces(Object object, ClassLoader classLoader, Consumer<ClassNotFoundException> classNotFoundHandler) -
throwException
-