public final class UtilConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<Class<?>,Class<?>> |
PRIMITIVES
Map of primitive types for correct use of
<type>.isInstance(...). |
| Modifier and Type | Method and Description |
|---|---|
static Converter |
getConverter(Annotation[] annots)
Extract converter information from parameter annotations.
|
static Class<?> |
getWrapper(Class<?> clazz)
Get errors.
|
static Object |
prepareArgument(IContext context,
String message,
Annotation[] annotations,
Class<?> type,
Object arg)
Prepare only one argument.
|
static void |
prepareMethodArguments(IContext context,
Method method,
List<Object> arguments)
Prepare arguments.
|
public static Class<?> getWrapper(Class<?> clazz)
clazz - O errors.public static void prepareMethodArguments(IContext context, Method method, List<Object> arguments) throws PluginException
context - The context.method - The method.arguments - The arguments.PluginException - On preparation errors.public static Object prepareArgument(IContext context, String message, Annotation[] annotations, Class<?> type, Object arg) throws PluginException
context - The context.message - The message.annotations - A list of annotations.type - The object expected type..arg - The current argument.PluginException - On preparation errors.public static Converter getConverter(Annotation[] annots)
annots - The annotations.Copyright © 2016. All rights reserved.