public class ReflectUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Class[] |
EMPTY_CLASS_ARRAY |
public static final Class[] EMPTY_CLASS_ARRAY
public static ProtectionDomain getProtectionDomain(Class source)
public static Constructor findConstructor(String desc)
public static Constructor findConstructor(String desc, ClassLoader loader)
public static Method findMethod(String desc, ClassLoader loader)
public static Object newInstance(Constructor cstruct, Object[] args)
public static Constructor getConstructor(Class type, Class[] parameterTypes)
public static Method[] getPropertyMethods(PropertyDescriptor[] properties, boolean read, boolean write)
public static PropertyDescriptor[] getBeanProperties(Class type)
public static PropertyDescriptor[] getBeanGetters(Class type)
public static PropertyDescriptor[] getBeanSetters(Class type)
public static Method findDeclaredMethod(Class type, String methodName, Class[] parameterTypes) throws NoSuchMethodException
NoSuchMethodExceptionpublic static Class defineClass(String className, byte[] b, ClassLoader loader) throws Exception
Exceptionpublic static Class defineClass(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain) throws Exception
Exceptionpublic static Class defineClass(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain, Class<?> contextClass) throws Exception
Exceptionpublic static int findPackageProtected(Class[] classes)
Copyright © 2021. All rights reserved.