public interface ClassReflect
ClassUtil.| Modifier and Type | Method and Description |
|---|---|
Method |
getCloseMethod(Class<?> cls,
String name,
Class<?>[] argTypes)
Gets one of the close methods -- a close method is a method
with the same name and the compatible argument type.
|
Object |
newInstance(Class<?> cls,
Object[] args)
Instantiates a new instance of the specified class with the
specified argument.
|
Method getCloseMethod(Class<?> cls, String name, Class<?>[] argTypes) throws NoSuchMethodException
NoSuchMethodExceptionObject newInstance(Class<?> cls, Object[] args) throws NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException
Copyright © 2016. All rights reserved.