public class Converter extends Object
| Constructor and Description |
|---|
Converter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGetter(Method method) |
void |
addSetter(Method method) |
static Object |
convert(Object object,
Class<?> clazz,
Class<?> accessibleClass) |
static Object |
convertArgument(Class<?> targetType,
Class<?> methodType,
Object arg) |
static Object[] |
convertArguments(Class<?>[] targetTypes,
Class<?>[] methodTypes,
Object... args) |
static Object |
convertResult(Class<?> targetType,
Class<?> methodType,
Object result) |
List<Method[]> |
getReadWritablePropertyPairs() |
public void addGetter(Method method)
public void addSetter(Method method)
public static Object[] convertArguments(Class<?>[] targetTypes, Class<?>[] methodTypes, Object... args) throws InstantiationException, IllegalAccessException, NoSuchMethodException, IllegalArgumentException, InvocationTargetException, SecurityException
public static Object convertArgument(Class<?> targetType, Class<?> methodType, Object arg) throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException
public static Object convertResult(Class<?> targetType, Class<?> methodType, Object result) throws NoSuchMethodException
NoSuchMethodExceptionpublic static Object convert(Object object, Class<?> clazz, Class<?> accessibleClass) throws InstantiationException, IllegalAccessException, NoSuchMethodException, IllegalArgumentException, InvocationTargetException, SecurityException
Copyright © 2024. All rights reserved.