org.teatrove.tea.compiler
Class Generics

java.lang.Object
  extended by org.teatrove.tea.compiler.Generics

public class Generics
extends Object

Author:
Nick Hagan

Method Summary
static Type findType(Type type, Type... parents)
           
static Type getBoundedType(TypeVariable<?> type)
           
static Type getBoundedType(WildcardType type)
           
static Class<?> getComponentType(GenericArrayType type)
           
static Type getIterationType(Type type)
           
static Type getIterationType(Type generic)
           
static Type getKeyType(Type type)
           
static Type getKeyType(Type generic)
           
static Class<?> getRawType(ParameterizedType type)
           
static Type getUnderlyingType(Type ttype)
           
static Type getValueType(Type type)
           
static Type getValueType(Type generic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findType

public static Type findType(Type type,
                            Type... parents)

getRawType

public static Class<?> getRawType(ParameterizedType type)

getBoundedType

public static Type getBoundedType(TypeVariable<?> type)

getBoundedType

public static Type getBoundedType(WildcardType type)

getUnderlyingType

public static Type getUnderlyingType(Type ttype)

getComponentType

public static Class<?> getComponentType(GenericArrayType type)

getIterationType

public static Type getIterationType(Type type)

getIterationType

public static Type getIterationType(Type generic)

getKeyType

public static Type getKeyType(Type type)

getKeyType

public static Type getKeyType(Type generic)

getValueType

public static Type getValueType(Type type)

getValueType

public static Type getValueType(Type generic)


Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.