|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.converters.UtilConverter
public final class UtilConverter
Converter utilities.
| Field Summary | |
|---|---|
static Map<Class<?>,Class<?>> |
PRIMITIVES
Map of primitive types for correct use of <type>.isInstance(...) |
| Method Summary | |
|---|---|
static Converter |
getConverter(Annotation[] annots)
Extract converter information from parameter annotations. |
static Class<?> |
getWrapper(Class<?> clazz)
Get errors. |
static Object |
prepareArgument(String message,
Annotation[] annotations,
Class<?> type,
Object arg)
Prepare only one argument. |
static void |
prepareMethodArguments(Method method,
List<Object> arguments)
Prepare arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Map<Class<?>,Class<?>> PRIMITIVES
<type>.isInstance(...).
| Method Detail |
|---|
public static Class<?> getWrapper(Class<?> clazz)
clazz - O errors.
public static void prepareMethodArguments(Method method,
List<Object> arguments)
throws PluginException
method - The method.arguments - The arguments.
PluginException - On preparation errors.
public static Object prepareArgument(String message,
Annotation[] annotations,
Class<?> type,
Object arg)
throws PluginException
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||