public class TypeResolver
extends java.lang.Object
| Constructor and Description |
|---|
TypeResolver() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
instanceOf(java.lang.Class c,
java.util.List<java.lang.String> types) |
static boolean |
instanceOf(java.lang.Class c,
java.lang.String type) |
static java.lang.reflect.Type |
resolve(java.lang.reflect.Type implementation,
java.lang.Class<?> type,
int parameterIndex)
A simplistic implementation, it may not handle all cases but it should handle enough.
|
static java.lang.Class |
resolveToClass(java.lang.reflect.Type type) |
static java.lang.Class<?> |
resolveToClass(java.lang.reflect.Type implementation,
java.lang.Class<?> type,
int parameterIndex) |
public static java.lang.Class<?> resolveToClass(java.lang.reflect.Type implementation,
java.lang.Class<?> type,
int parameterIndex)
public static java.lang.Class resolveToClass(java.lang.reflect.Type type)
public static java.lang.reflect.Type resolve(java.lang.reflect.Type implementation,
java.lang.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(java.lang.Class c,
java.util.List<java.lang.String> types)
public static boolean instanceOf(java.lang.Class c,
java.lang.String type)
Copyright © 2014 eXo Platform SAS. All Rights Reserved.