| Modifier and Type | Method and Description |
|---|---|
default TypeParameterDeclaration |
TypeDeclaration.asTypeParameter()
Return this as a TypeParameterDeclaration or throw UnsupportedOperationException.
|
static TypeParameterDeclaration |
TypeParameterDeclaration.onType(String name,
String classQName,
List<TypeParameterDeclaration.Bound> bounds)
Instantiate a TypeParameter defined on a Type with the given data.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<TypeParameterDeclaration> |
TypeParametrizable.findTypeParameter(String name)
Find the closest TypeParameterDeclaration with the given name.
|
default Optional<TypeParameterDeclaration> |
TypeDeclaration.findTypeParameter(String name) |
default Optional<TypeParameterDeclaration> |
MethodLikeDeclaration.findTypeParameter(String name) |
List<TypeParameterDeclaration> |
TypeParametrizable.getTypeParameters()
The list of type parameters defined on this element.
|
| Modifier and Type | Method and Description |
|---|---|
MethodUsage |
MethodUsage.replaceTypeParameter(TypeParameterDeclaration typeParameter,
Type type) |
| Modifier and Type | Method and Description |
|---|---|
default TypeParameterDeclaration |
Type.asTypeParameter() |
TypeParameterDeclaration |
TypeVariable.asTypeParameter() |
| Modifier and Type | Method and Description |
|---|---|
List<javaslang.Tuple2<TypeParameterDeclaration,Type>> |
ReferenceType.getTypeParametersMap()
Get the values for all type parameters declared on this type.
|
| Modifier and Type | Method and Description |
|---|---|
default Type |
Type.replaceTypeVariables(TypeParameterDeclaration tp,
Type replaced,
Map<TypeParameterDeclaration,Type> inferredTypes)
Replace all variables referring to the given TypeParameter with the given value.
|
Type |
ArrayType.replaceTypeVariables(TypeParameterDeclaration tpToReplace,
Type replaced,
Map<TypeParameterDeclaration,Type> inferredTypes) |
Type |
ReferenceType.replaceTypeVariables(TypeParameterDeclaration tpToReplace,
Type replaced,
Map<TypeParameterDeclaration,Type> inferredTypes) |
Type |
Wildcard.replaceTypeVariables(TypeParameterDeclaration tpToReplace,
Type replaced,
Map<TypeParameterDeclaration,Type> inferredTypes) |
Type |
TypeVariable.replaceTypeVariables(TypeParameterDeclaration tpToBeReplaced,
Type replaced,
Map<TypeParameterDeclaration,Type> inferredTypes) |
| Constructor and Description |
|---|
TypeVariable(TypeParameterDeclaration typeParameter) |
| Modifier and Type | Method and Description |
|---|---|
Type |
TypeParametersMap.getValue(TypeParameterDeclaration typeParameter) |
TypeParametersMap.Builder |
TypeParametersMap.Builder.setValue(TypeParameterDeclaration typeParameter,
Type value) |
Optional<Type> |
TypeParameterValueProvider.typeParamValue(TypeParameterDeclaration typeParameterDeclaration)
Calculate the value for the given type parameter.
|
Copyright © 2016. All rights reserved.