Package 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeSignaturegetClassBound()StringgetIdentifier()TypeSignature[]getInterfaceBounds()static FormalTypeParameter[]getTypeParameters(IClass klass)static FormalTypeParameter[]getTypeParameters(IMethod method)static FormalTypeParametermake(String string)
-
-
-
Method Detail
-
make
public static FormalTypeParameter make(String string) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
getClassBound
public TypeSignature getClassBound()
-
getIdentifier
public 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
-
-