com.ibm.wala.types.generics
Class FormalTypeParameter
java.lang.Object
com.ibm.wala.types.generics.Signature
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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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