public interface TypeParameterDeclaration extends TypeDeclaration
class A<E extends String>{}
In this case E would be a type parameter.
| Modifier and Type | Interface and Description |
|---|---|
static class |
TypeParameterDeclaration.Bound
A Bound on a Type Parameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
declaredOnMethod()
Is the type parameter been defined on a method?
|
boolean |
declaredOnType()
Is the type parameter been defined on a type?
|
java.util.List<TypeParameterDeclaration.Bound> |
getBounds(TypeSolver typeSolver)
The bounds specified for the type parameter.
|
default java.lang.String |
getClassName()
The class(es) wrapping the type bound(s).
|
java.lang.String |
getContainerId()
The ID of the container.
|
java.lang.String |
getContainerQualifiedName()
The qualified name of the container.
|
java.lang.String |
getName()
Name of the type parameter.
|
default java.lang.String |
getPackageName()
The package name of the type bound(s).
|
default java.lang.String |
getQualifiedName()
The qualified name of the Type Parameter.
|
static TypeParameterDeclaration |
onType(java.lang.String name,
java.lang.String classQName,
java.util.List<TypeParameterDeclaration.Bound> bounds)
Instantiate a TypeParameter defined on a Type with the given data.
|
asClass, asEnum, asInterface, asReferenceType, asType, asTypeParameter, containerType, getId, getInternalType, hasInternalType, internalTypes, isClass, isEnum, isInterface, isType, isTypeParameterasField, asMethod, asParameter, hasName, isField, isMethod, isParameterstatic TypeParameterDeclaration onType(java.lang.String name, java.lang.String classQName, java.util.List<TypeParameterDeclaration.Bound> bounds)
java.lang.String getName()
getName in interface Declarationboolean declaredOnType()
boolean declaredOnMethod()
default java.lang.String getPackageName()
getPackageName in interface TypeDeclarationdefault java.lang.String getClassName()
getClassName in interface TypeDeclarationdefault java.lang.String getQualifiedName()
getQualifiedName in interface TypeDeclarationjava.lang.String getContainerQualifiedName()
java.lang.String getContainerId()
java.util.List<TypeParameterDeclaration.Bound> getBounds(TypeSolver typeSolver)