org.crsh.util
Class TypeResolver

java.lang.Object
  extended by org.crsh.util.TypeResolver

public class TypeResolver
extends Object

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
TypeResolver()
           
 
Method Summary
static Type resolve(Type implementation, Class<?> type, int parameterIndex)
          A simplistic implementation, it may not handle all cases but it should handle enough.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeResolver

public TypeResolver()
Method Detail

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


Copyright © 2011 eXo Platform SAS. All Rights Reserved.