public interface PsiTypeParameter extends PsiClass, PsiAnnotationOwner, JvmTypeParameter
Iconable.IconFlags, Iconable.LastComputedIcon| Modifier and Type | Field and Description |
|---|---|
static ArrayFactory<PsiTypeParameter> |
ARRAY_FACTORY |
static PsiTypeParameter[] |
EMPTY_ARRAY
The empty array of PSI type parameters which can be reused to avoid unnecessary allocations.
|
EMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_NAVIGATION_ITEM_ARRAYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY| Modifier and Type | Method and Description |
|---|---|
default <T> T |
accept(JvmElementVisitor<T> visitor) |
default PsiAnnotation [] |
getAnnotations()
Returns the list of annotations syntactically contained in the element.
|
default JvmReferenceType [] |
getBounds() |
PsiReferenceList |
getExtendsList()
Returns the extends list of the type parameter.
|
int |
getIndex()
Returns the position of this type parameter in the type parameter list of the owner element.
|
PsiTypeParameterListOwner |
getOwner()
Returns the element which is parameterized by the type parameter.
|
default boolean |
hasAnnotation(java.lang.String fqn)
Searches the owner for an annotation with the specified fully qualified name
and returns
true if it is found. |
findFieldByName, findInnerClassByName, findMethodBySignature, findMethodsAndTheirSubstitutorsByName, findMethodsByName, findMethodsByName, findMethodsBySignature, getAllFields, getAllInnerClasses, getAllMethods, getAllMethodsAndTheirSubstitutors, getClassKind, getConstructors, getContainingClass, getExtendsListTypes, getFields, getImplementsList, getImplementsListTypes, getInitializers, getInnerClasses, getInterfaces, getInterfaceTypes, getLBrace, getMethods, getNameIdentifier, getQualifiedName, getRBrace, getRecordComponents, getRecordHeader, getScope, getSuperClass, getSuperClassType, getSupers, getSuperTypes, getVisibleSignatures, isAnnotationType, isEnum, isInheritor, isInheritorDeep, isInterface, isRecord, setNamegetIdentifyingElementisDeprecatedgetDocCommentgetTypeParameterList, getTypeParameters, hasTypeParametersgetName, getPresentationcanNavigate, canNavigateToSource, navigategetAnnotation, getSourceElement, hasModifiergetModifierList, hasModifierPropertyaccept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getNode, getOriginalElement, getOwnReferences, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toStringgetUserData, putUserDatagetNamegetNavigationElementisWritablegetNameaddAnnotation, findAnnotation, getApplicableAnnotationsstatic final PsiTypeParameter[] EMPTY_ARRAY
static final ArrayFactory<PsiTypeParameter> ARRAY_FACTORY
PsiReferenceList getExtendsList()
getExtendsList in interface PsiClassPsiTypeParameterListOwner getOwner()
getOwner in interface JvmTypeParameterTypeVariable.getGenericDeclaration()int getIndex()
default PsiAnnotation [] getAnnotations()
PsiAnnotationOwnergetAnnotations in interface JvmAnnotatedElementgetAnnotations in interface PsiAnnotationOwnergetAnnotations in interface PsiJvmModifiersOwnergetAnnotations in interface PsiModifierListOwnerdefault boolean hasAnnotation(java.lang.String fqn)
PsiAnnotationOwnertrue if it is found.
This method is preferable over PsiAnnotationOwner.findAnnotation(java.lang.String)
since implementations are free not to instantiate the PsiAnnotation.hasAnnotation in interface JvmAnnotatedElementhasAnnotation in interface PsiAnnotationOwnerhasAnnotation in interface PsiJvmModifiersOwnerhasAnnotation in interface PsiModifierListOwnerfqn - the fully qualified name of the annotation to findtrue is such annotation is found, otherwise falsedefault JvmReferenceType [] getBounds()
getBounds in interface JvmTypeParameterTypeVariable.getBounds(),
TypeVariable.getAnnotatedBounds()default <T> T accept(JvmElementVisitor<T> visitor)
accept in interface JvmClassaccept in interface JvmElementaccept in interface JvmMemberaccept in interface JvmTypeParameter