net.sf.mmm.util.reflect.impl
Class TypeVariableImpl<DECLARATION extends GenericDeclaration>

java.lang.Object
  extended by net.sf.mmm.util.reflect.impl.TypeVariableImpl<DECLARATION>
Type Parameters:
DECLARATION - the type of generic declaration that declared the underlying type variable.
All Implemented Interfaces:
Type, TypeVariable<DECLARATION>

public class TypeVariableImpl<DECLARATION extends GenericDeclaration>
extends Object
implements TypeVariable<DECLARATION>

This is an implementation of the TypeVariable interface.

Since:
1.0.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
private  Type[] bounds
           
private  DECLARATION genericDeclaration
           
private  String name
           
 
Constructor Summary
TypeVariableImpl(String name, DECLARATION declaration, Type[] bounds)
          The constructor.
 
Method Summary
 boolean equals(Object other)
          
 Type[] getBounds()
          TODO: unclear how we build the bounds!
 DECLARATION getGenericDeclaration()
          
 String getName()
          
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private final String name
See Also:
getName()

bounds

private final Type[] bounds
See Also:
getBounds()

genericDeclaration

private final DECLARATION extends GenericDeclaration genericDeclaration
See Also:
getGenericDeclaration()
Constructor Detail

TypeVariableImpl

public TypeVariableImpl(String name,
                        DECLARATION declaration,
                        Type[] bounds)
The constructor.

Parameters:
name - is the name.
declaration - is the declaring element (e.g. Class or Method).
bounds - are the getBounds().
Method Detail

getBounds

public Type[] getBounds()
TODO: unclear how we build the bounds!

Specified by:
getBounds in interface TypeVariable<DECLARATION extends GenericDeclaration>

getGenericDeclaration

public DECLARATION getGenericDeclaration()

Specified by:
getGenericDeclaration in interface TypeVariable<DECLARATION extends GenericDeclaration>

getName

public String getName()

Specified by:
getName in interface TypeVariable<DECLARATION extends GenericDeclaration>

equals

public boolean equals(Object other)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2001-2010 mmm-Team. All Rights Reserved.