org.crsh.util
Class TypeResolver
java.lang.Object
org.crsh.util.TypeResolver
public class TypeResolver
- extends Object
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 resolutiontype
- the type that owns the parameterparameterIndex
- 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.