org.crsh.util
Class TypeResolver
java.lang.Object
org.crsh.util.TypeResolver
-
public class TypeResolver
- extends Object
-
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeResolver
public TypeResolver()
resolveToClass
public static Class<?> resolveToClass(Type implementation,
Class<?> type,
int parameterIndex)
-
resolveToClass
public static Class resolveToClass(Type type)
-
resolve
public static Type resolve(Type implementation,
Class<?> type,
int parameterIndex)
-
A simplistic implementation, it may not handle all cases but it should handle enough.
-
- Parameters:
implementation
- the type for which the parameter requires a resolution
type
- the type that owns the parameter
parameterIndex
- the parameter index
- Returns:
- the resolved type
instanceOf
public static boolean instanceOf(Class c,
List<String> types)
-
instanceOf
public static boolean instanceOf(Class c,
String type)
-
Copyright © 2014 eXo Platform SAS. All Rights Reserved.