com.ibm.wala.types.generics
Class FormalTypeParameter

java.lang.Object
  extended by com.ibm.wala.types.generics.Signature
      extended by com.ibm.wala.types.generics.FormalTypeParameter

public class FormalTypeParameter
extends Signature

Under construction. FormalTypeParameter: Identifier ClassBound InterfaceBound* ClassBound: : FieldTypeSignature? InterfaceBound : FieldTypeSignature FieldTypeSignature: ClassTypeSignature ArrayTypeSignature TypeVariableSignature


Method Summary
 TypeSignature getClassBound()
           
 java.lang.String getIdentifier()
           
 TypeSignature[] getInterfaceBounds()
           
static FormalTypeParameter[] getTypeParameters(IClass klass)
           
static FormalTypeParameter[] getTypeParameters(IMethod method)
           
static FormalTypeParameter make(java.lang.String string)
           
 
Methods inherited from class com.ibm.wala.types.generics.Signature
equals, hashCode, rawString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

make

public static FormalTypeParameter make(java.lang.String string)
                                throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getClassBound

public TypeSignature getClassBound()

getIdentifier

public java.lang.String getIdentifier()

getInterfaceBounds

public TypeSignature[] getInterfaceBounds()

getTypeParameters

public static FormalTypeParameter[] getTypeParameters(IClass klass)
                                               throws InvalidClassFileException
Parameters:
klass -
Returns:
the formal type parameters, or null if none
Throws:
InvalidClassFileException

getTypeParameters

public static FormalTypeParameter[] getTypeParameters(IMethod method)
                                               throws InvalidClassFileException
Throws:
InvalidClassFileException