org.crsh.util
Class TypeResolver
java.lang.Object
org.crsh.util.TypeResolver
public class TypeResolver
- extends Object
- Version:
- $Revision$
- Author:
- Julien Viet
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
Copyright © 2012 eXo Platform SAS. All Rights Reserved.