net.sf.rej.java.attribute.generics
Class FormalTypeParameter

java.lang.Object
  extended by net.sf.rej.java.attribute.generics.FormalTypeParameter

public class FormalTypeParameter
extends java.lang.Object

Models a formal type parameter. A type parameter consists of an identifier and an optional class bound and optional interface bounds.

Author:
Sami Koivu

Constructor Summary
FormalTypeParameter(java.lang.String identifier)
           
 
Method Summary
 void addInterfaceBound(GenericJavaType type)
           
 GenericJavaType getClassBound()
           
 java.lang.String getIdentifier()
           
 java.util.List<GenericJavaType> getInterfaceBounds()
           
 java.util.List<GenericJavaType> getTypeUnion()
           
 void setClassBound(GenericJavaType type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormalTypeParameter

public FormalTypeParameter(java.lang.String identifier)
Method Detail

setClassBound

public void setClassBound(GenericJavaType type)

addInterfaceBound

public void addInterfaceBound(GenericJavaType type)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getIdentifier

public java.lang.String getIdentifier()

getClassBound

public GenericJavaType getClassBound()

getInterfaceBounds

public java.util.List<GenericJavaType> getInterfaceBounds()

getTypeUnion

public java.util.List<GenericJavaType> getTypeUnion()