org.javaruntype.type
Class TypeParameter<T>

Object
  extended by org.javaruntype.type.TypeParameter<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExtendsTypeParameter, StandardTypeParameter, SuperTypeParameter, WildcardTypeParameter

public abstract class TypeParameter<T>
extends Object
implements Serializable

Abstract class that represents a type parameter in a Type object.

TypeParameter objects, depending on its specific subclass, can represent:

Since:
1.0
Author:
Daniel Fernández
See Also:
Serialized Form

Method Summary
abstract  Type<T> getType()
           Returns the type contained in the parameter.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getType

public abstract Type<T> getType()

Returns the type contained in the parameter. It will raise an exception for wildcard type parameters (?).

Returns:
the type contained in the parameter.


Copyright © 2012 The JAVARUNTYPE team. All Rights Reserved.