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_ARRAY
EMPTY_NAVIGATION_ITEM_ARRAY
ICON_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, setName
getIdentifyingElement
isDeprecated
getDocComment
getTypeParameterList, getTypeParameters, hasTypeParameters
getName, getPresentation
canNavigate, canNavigateToSource, navigate
getAnnotation, getSourceElement, hasModifier
getModifierList, hasModifierProperty
accept, 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, toString
getUserData, putUserData
getName
getNavigationElement
isWritable
getName
addAnnotation, findAnnotation, getApplicableAnnotations
static final PsiTypeParameter[] EMPTY_ARRAY
static final ArrayFactory<PsiTypeParameter> ARRAY_FACTORY
PsiReferenceList getExtendsList()
getExtendsList
in interface PsiClass
PsiTypeParameterListOwner getOwner()
getOwner
in interface JvmTypeParameter
TypeVariable.getGenericDeclaration()
int getIndex()
default PsiAnnotation [] getAnnotations()
PsiAnnotationOwner
getAnnotations
in interface JvmAnnotatedElement
getAnnotations
in interface PsiAnnotationOwner
getAnnotations
in interface PsiJvmModifiersOwner
getAnnotations
in interface PsiModifierListOwner
default boolean hasAnnotation(java.lang.String fqn)
PsiAnnotationOwner
true
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 JvmAnnotatedElement
hasAnnotation
in interface PsiAnnotationOwner
hasAnnotation
in interface PsiJvmModifiersOwner
hasAnnotation
in interface PsiModifierListOwner
fqn
- the fully qualified name of the annotation to findtrue
is such annotation is found, otherwise false
default JvmReferenceType [] getBounds()
getBounds
in interface JvmTypeParameter
TypeVariable.getBounds()
,
TypeVariable.getAnnotatedBounds()
default <T> T accept(JvmElementVisitor<T> visitor)
accept
in interface JvmClass
accept
in interface JvmElement
accept
in interface JvmMember
accept
in interface JvmTypeParameter