Interface ResolvedTypeParametrizable
-
- All Known Subinterfaces:
ResolvedAnnotationDeclaration,ResolvedClassDeclaration,ResolvedConstructorDeclaration,ResolvedEnumDeclaration,ResolvedInterfaceDeclaration,ResolvedMethodDeclaration,ResolvedMethodLikeDeclaration,ResolvedReferenceTypeDeclaration
public interface ResolvedTypeParametrizableAn entity which has type parameter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Optional<ResolvedTypeParameterDeclaration>findTypeParameter(java.lang.String name)Find the closest TypeParameterDeclaration with the given name.java.util.List<ResolvedTypeParameterDeclaration>getTypeParameters()The list of type parameters defined on this element.default booleanisGeneric()
-
-
-
Method Detail
-
getTypeParameters
java.util.List<ResolvedTypeParameterDeclaration> getTypeParameters()
The list of type parameters defined on this element.
-
findTypeParameter
java.util.Optional<ResolvedTypeParameterDeclaration> findTypeParameter(java.lang.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()
-
-