Interface ResolvedTypeParametrizable
-
- All Known Subinterfaces:
ResolvedAnnotationDeclaration
,ResolvedClassDeclaration
,ResolvedConstructorDeclaration
,ResolvedEnumDeclaration
,ResolvedInterfaceDeclaration
,ResolvedMethodDeclaration
,ResolvedMethodLikeDeclaration
,ResolvedReferenceTypeDeclaration
public interface ResolvedTypeParametrizable
An entity which has type parameter.- Author:
- Federico Tomassetti
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Optional<ResolvedTypeParameterDeclaration>
findTypeParameter(String name)
Find the closest TypeParameterDeclaration with the given name.List<ResolvedTypeParameterDeclaration>
getTypeParameters()
The list of type parameters defined on this element.default boolean
isGeneric()
-
-
-
Method Detail
-
getTypeParameters
List<ResolvedTypeParameterDeclaration> getTypeParameters()
The list of type parameters defined on this element.
-
findTypeParameter
Optional<ResolvedTypeParameterDeclaration> findTypeParameter(String name)
Find the closest TypeParameterDeclaration with the given name. It first look on this element itself and then on the containers.
-
isGeneric
default boolean isGeneric()
-
-