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 ResolvedTypeParameterDeclaration |
asTypeParameter()
Return this as a TypeParameterDeclaration or throw UnsupportedOperationException.
|
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 |
hasBound()
Has the type parameter a bound?
|
default boolean |
hasLowerBound()
Has the type parameter a lower bound?
|
default boolean |
hasUpperBound()
Has the type parameter an upper bound?
|
default boolean |
isBounded()
Return true if the Type variable is bounded
|
default boolean |
isTypeParameter()
Is this the declaration of a type parameter?
|
default boolean |
isUnbounded()
Return true if the Type variable is unbounded
|
ResolvedReferenceType |
object() |
static ResolvedTypeParameterDeclaration |
onType(String name,
String classQName,
List<ResolvedTypeParameterDeclaration.Bound> bounds)
Instantiate a TypeParameter defined on a Type with the given data.
|
asAnnotation, asClass, asEnum, asInterface, asReferenceType, asType, containerType, getId, getInternalType, hasInternalType, internalTypes, isAnnotation, isAnonymousClass, isClass, isEnum, isInterface, isReferenceType, isTypeasEnumConstant, asField, asMethod, asParameter, asPattern, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isVariabletoAst, toAststatic 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 hasBound()
default boolean hasLowerBound()
default boolean hasUpperBound()
default ResolvedType getLowerBound()
IllegalStateException - if there is no lower bounddefault ResolvedType getUpperBound()
IllegalStateException - if there is no upper bounddefault ResolvedTypeParameterDeclaration asTypeParameter()
ResolvedTypeDeclarationasTypeParameter in interface ResolvedTypeDeclarationdefault boolean isTypeParameter()
ResolvedTypeDeclarationisTypeParameter in interface ResolvedTypeDeclarationdefault boolean isBounded()
default boolean isUnbounded()
ResolvedReferenceType object()
Copyright © 2007–2023. All rights reserved.