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, internalTypes, isClass, isEnum, isInterface, isType, isTypeParameter
asField, asMethod, asParameter, hasName, isField, isMethod, isParameter
static TypeParameterDeclaration onType(java.lang.String name, java.lang.String classQName, java.util.List<TypeParameterDeclaration.Bound> bounds)
java.lang.String getName()
getName
in interface Declaration
boolean declaredOnType()
boolean declaredOnMethod()
default java.lang.String getPackageName()
getPackageName
in interface TypeDeclaration
default java.lang.String getClassName()
getClassName
in interface TypeDeclaration
default java.lang.String getQualifiedName()
getQualifiedName
in interface TypeDeclaration
java.lang.String getContainerQualifiedName()
java.lang.String getContainerId()
java.util.List<TypeParameterDeclaration.Bound> getBounds(TypeSolver typeSolver)