org.sca4j.introspection
Class TypeMapping

java.lang.Object
  extended by org.sca4j.introspection.TypeMapping

public class TypeMapping
extends java.lang.Object

A mapping from formal types to actual types.

Version:
$Rev: 3105 $ $Date: 2008-03-15 16:47:31 +0000 (Sat, 15 Mar 2008) $

Constructor Summary
TypeMapping()
           
 
Method Summary
 void addMapping(java.lang.reflect.TypeVariable<?> typeVariable, java.lang.reflect.Type type)
          Add a mapping from a TypeVariable to an actual type
 java.lang.reflect.Type getActualType(java.lang.reflect.Type type)
          Return the actual type of the supplied formal type.
 java.lang.Class<?> getRawType(java.lang.reflect.Type type)
          Return the raw type of the supplied formal type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeMapping

public TypeMapping()
Method Detail

addMapping

public void addMapping(java.lang.reflect.TypeVariable<?> typeVariable,
                       java.lang.reflect.Type type)
Add a mapping from a TypeVariable to an actual type

Parameters:
typeVariable - the formal type variable
type - the actual type it maps to

getActualType

public java.lang.reflect.Type getActualType(java.lang.reflect.Type type)
Return the actual type of the supplied formal type.

Parameters:
type - the formal type parameter
Returns:
the actual type; may be a TypeVariable if the type is not bound

getRawType

public java.lang.Class<?> getRawType(java.lang.reflect.Type type)
Return the raw type of the supplied formal type.

Parameters:
type - the formal type parameter
Returns:
the actual class for that parameter


Copyright © 2008-2011 Service Symphony. All Rights Reserved.