class A<E extends String>{}
In this case E would be a type parameter.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ResolvedTypeParameterDeclaration.
A Bound on a Type Parameter. |
| declaredOnConstructor | back to summary |
|---|---|
| public default boolean declaredOnConstructor() Is the type parameter been defined on a constructor? | |
| declaredOnMethod | back to summary |
|---|---|
| public default boolean declaredOnMethod() Is the type parameter been defined on a method? | |
| declaredOnType | back to summary |
|---|---|
| public default boolean declaredOnType() Is the type parameter been defined on a type? | |
| getBounds | back to summary |
|---|---|
| public List The bounds specified for the type parameter. For example: "extends A" or "super B" | |
| getClassName | back to summary |
|---|---|
| public default String getClassName() Implements com. The class(es) wrapping the type bound(s). This is unsupported because there is no class for a Type Parameter, only for its container. | |
| getContainer | back to summary |
|---|---|
| public ResolvedTypeParametrizable getContainer() The TypeParametrizable of the container. Can be either a ReferenceTypeDeclaration or a MethodLikeDeclaration | |
| getContainerId | back to summary |
|---|---|
| public String getContainerId() The ID of the container. See TypeContainer.getId | |
| getContainerQualifiedName | back to summary |
|---|---|
| public String getContainerQualifiedName() The qualified name of the container. | |
| getLowerBound | back to summary |
|---|---|
| public default ResolvedType getLowerBound() Get the type used as lower bound.
| |
| getName | back to summary |
|---|---|
| public String getName() Redeclares com. Name of the type parameter. | |
| getPackageName | back to summary |
|---|---|
| public default String getPackageName() Implements com. The package name of the type bound(s). This is unsupported because there is no package for a Type Parameter, only for its container. | |
| getQualifiedName | back to summary |
|---|---|
| public default String getQualifiedName() Implements com. The qualified name of the Type Parameter. It is composed by the qualified name of the container followed by a dot and the name of the Type Parameter. The qualified name of a method is its qualified signature. | |
| getUpperBound | back to summary |
|---|---|
| public default ResolvedType getUpperBound() Get the type used as upper bound.
| |
| hasLowerBound | back to summary |
|---|---|
| public default boolean hasLowerBound() Has the type parameter a lower bound? | |
| hasUpperBound | back to summary |
|---|---|
| public default boolean hasUpperBound() Has the type parameter an upper bound? | |
| onType | back to summary |
|---|---|
| public static ResolvedTypeParameterDeclaration onType(final String name, String classQName, List<ResolvedTypeParameterDeclaration. Instantiate a TypeParameter defined on a Type with the given data. | |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private ResolvedType |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public static ResolvedTypeParameterDeclaration. | |
| public ResolvedType | |
| public int | |
| public boolean | |
| public boolean | |
| public static ResolvedTypeParameterDeclaration. | |
| public String |
| extendsBound | back to summary |
|---|---|
| private boolean extendsBound | |
| type | back to summary |
|---|---|
| private ResolvedType type | |
| Bound | back to summary |
|---|---|
| private Bound(boolean extendsBound, ResolvedType type) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| extendsBound | back to summary |
|---|---|
| public static ResolvedTypeParameterDeclaration. Create an extends bound with the given type: extends "given type" | |
| getType | back to summary |
|---|---|
| public ResolvedType getType() Get the type used in the Bound. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isExtends | back to summary |
|---|---|
| public boolean isExtends() Is this an extends bound? | |
| isSuper | back to summary |
|---|---|
| public boolean isSuper() Is this a super bound? | |
| superBound | back to summary |
|---|---|
| public static ResolvedTypeParameterDeclaration. Create a super bound with the given type: super "given type" | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |