public interface ResolvedTypeParameterDeclaration extends ResolvedTypeDeclaration
class A<E extends String>{}
In this case E would be a type parameter.
| Modifier and Type | Interface and Description |
|---|---|
static class |
ResolvedTypeParameterDeclaration.Bound
A Bound on a Type Parameter.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
declaredOnConstructor()
Is the type parameter been defined on a constructor?
|
default boolean |
declaredOnMethod()
Is the type parameter been defined on a method?
|
default boolean |
declaredOnType()
Is the type parameter been defined on a type?
|
List<ResolvedTypeParameterDeclaration.Bound> |
getBounds()
The bounds specified for the type parameter.
|
default String |
getClassName()
The class(es) wrapping the type bound(s).
|
ResolvedTypeParametrizable |
getContainer()
The TypeParametrizable of the container.
|
String |
getContainerId()
The ID of the container.
|
String |
getContainerQualifiedName()
The qualified name of the container.
|
default ResolvedType |
getLowerBound()
Get the type used as lower bound.
|
String |
getName()
Name of the type parameter.
|
default String |
getPackageName()
The package name of the type bound(s).
|
default String |
getQualifiedName()
The qualified name of the Type Parameter.
|
default ResolvedType |
getUpperBound()
Get the type used as upper bound.
|
default boolean |
hasLowerBound()
Has the type parameter a lower bound?
|
default boolean |
hasUpperBound()
Has the type parameter an upper bound?
|
static ResolvedTypeParameterDeclaration |
onType(String name,
String classQName,
List<ResolvedTypeParameterDeclaration.Bound> bounds)
Instantiate a TypeParameter defined on a Type with the given data.
|
asClass, asEnum, asInterface, asReferenceType, asType, asTypeParameter, containerType, getId, getInternalType, hasInternalType, internalTypes, isAnonymousClass, isClass, isEnum, isInterface, isType, isTypeParameterasEnumConstant, asField, asMethod, asParameter, hasName, isEnumConstant, isField, isMethod, isParameter, isVariablestatic ResolvedTypeParameterDeclaration onType(String name, String classQName, List<ResolvedTypeParameterDeclaration.Bound> bounds)
String getName()
getName in interface ResolvedDeclarationdefault boolean declaredOnType()
default boolean declaredOnMethod()
default boolean declaredOnConstructor()
default String getPackageName()
getPackageName in interface ResolvedTypeDeclarationdefault String getClassName()
getClassName in interface ResolvedTypeDeclarationdefault String getQualifiedName()
getQualifiedName in interface ResolvedTypeDeclarationString getContainerQualifiedName()
String getContainerId()
ResolvedTypeParametrizable getContainer()
List<ResolvedTypeParameterDeclaration.Bound> getBounds()
default boolean hasLowerBound()
default boolean hasUpperBound()
default ResolvedType getLowerBound()
IllegalStateException - if there is no lower bounddefault ResolvedType getUpperBound()
IllegalStateException - if there is no upper boundCopyright © 2007–2019. All rights reserved.