public class TypeResolver extends Object
| Constructor and Description |
|---|
TypeResolver() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
instanceOf(Class c,
List<String> types) |
static boolean |
instanceOf(Class c,
String type) |
static Type |
resolve(Type implementation,
Class<?> type,
int parameterIndex)
A simplistic implementation, it may not handle all cases but it should handle enough.
|
static Class |
resolveToClass(Type type) |
static Class<?> |
resolveToClass(Type implementation,
Class<?> type,
int parameterIndex) |
public TypeResolver()
public static Class<?> resolveToClass(Type implementation, Class<?> type, int parameterIndex)
public static Class resolveToClass(Type type)
public static Type resolve(Type implementation, Class<?> type, int parameterIndex)
implementation - the type for which the parameter requires a resolutiontype - the type that owns the parameterparameterIndex - the parameter indexpublic static boolean instanceOf(Class c, List<String> types)
public static boolean instanceOf(Class c, String type)
Copyright © 2013 eXo Platform SAS. All Rights Reserved.