public class LightTypeParameter extends LightClass implements PsiTypeParameter
Iconable.IconFlags, Iconable.LastComputedIcon
myManager
FLAGS_LOCKED, ICON_PLACEHOLDER
ARRAY_FACTORY, EMPTY_ARRAY
EMPTY_NAVIGATABLE_ELEMENT_ARRAY
EMPTY_NAVIGATION_ITEM_ARRAY
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
Constructor and Description |
---|
LightTypeParameter(PsiTypeParameter delegate) |
Modifier and Type | Method and Description |
---|---|
void |
accept(PsiElementVisitor visitor)
Passes the element to the specified visitor.
|
PsiAnnotation |
addAnnotation(java.lang.String qualifiedName)
Adds a new annotation to this owner.
|
PsiElement |
copy()
Creates a copy of the file containing the PSI element and returns the corresponding
element in the created copy.
|
PsiAnnotation |
findAnnotation(java.lang.String qualifiedName)
Searches the owner for an annotation with the specified fully qualified name
and returns one if it is found.
|
PsiAnnotation [] |
getAnnotations()
Returns the list of annotations syntactically contained in the element.
|
PsiAnnotation [] |
getApplicableAnnotations() |
PsiTypeParameter |
getDelegate() |
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.
|
java.lang.String |
toString()
toString() should never be presented to the user.
|
boolean |
useDelegateToSubstitute() |
findFieldByName, findInnerClassByName, findMethodBySignature, findMethodsAndTheirSubstitutorsByName, findMethodsByName, findMethodsBySignature, getAllFields, getAllInnerClasses, getAllMethods, getAllMethodsAndTheirSubstitutors, getConstructors, getContainingClass, getContainingFile, getContext, getDocComment, getExtendsList, getExtendsListTypes, getFields, getImplementsList, getImplementsListTypes, getInitializers, getInnerClasses, getInterfaces, getLBrace, getMethods, getModifierList, getName, getNameIdentifier, getNavigationElement, getQualifiedName, getRBrace, getScope, getSuperClass, getSupers, getSuperTypes, getText, getTypeParameterList, getTypeParameters, getVisibleSignatures, hasModifierProperty, hasTypeParameters, isAnnotationType, isDeprecated, isEnum, isEquivalentTo, isInheritor, isInheritorDeep, isInterface, isValid, processDeclarations, setName
add, addAfter, addBefore, checkAdd, checkDelete, delete, findElementAt, getChildren, getLanguage, getManager, getNextSibling, getNode, getParent, getPrevSibling, getStartOffsetInParent, getTextLength, getTextOffset, getTextRange, isPhysical, isWritable, replace, setNavigationElement, textMatches, textMatches, textToCharArray
acceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getFirstChild, getLastChild, getOriginalElement, getPresentation, getProject, getReference, getReferences, getResolveScope, getUseScope, navigate, notNullChild, textContains
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, getBounds, getExtendsList, hasAnnotation
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
acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, 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
getUserData, putUserData
getName
getNavigationElement
isWritable
getName
public LightTypeParameter(PsiTypeParameter delegate)
public PsiTypeParameter getDelegate()
getDelegate
in class LightClass
public PsiElement copy()
PsiElement
copy
in interface PsiElement
copy
in class LightClass
public void accept(PsiElementVisitor visitor)
PsiElement
accept
in interface PsiElement
accept
in class AbstractLightClass
visitor
- the visitor to pass the element to.public PsiTypeParameterListOwner getOwner()
PsiTypeParameter
getOwner
in interface JvmTypeParameter
getOwner
in interface PsiTypeParameter
TypeVariable.getGenericDeclaration()
public int getIndex()
PsiTypeParameter
getIndex
in interface PsiTypeParameter
public PsiAnnotation [] getAnnotations()
PsiAnnotationOwner
getAnnotations
in interface JvmAnnotatedElement
getAnnotations
in interface PsiAnnotationOwner
getAnnotations
in interface PsiJvmModifiersOwner
getAnnotations
in interface PsiModifierListOwner
getAnnotations
in interface PsiTypeParameter
public PsiAnnotation [] getApplicableAnnotations()
getApplicableAnnotations
in interface PsiAnnotationOwner
public PsiAnnotation findAnnotation(java.lang.String qualifiedName)
PsiAnnotationOwner
findAnnotation
in interface PsiAnnotationOwner
qualifiedName
- the fully qualified name of the annotation to find.public PsiAnnotation addAnnotation(java.lang.String qualifiedName)
PsiAnnotationOwner
addAnnotation
in interface PsiAnnotationOwner
qualifiedName
- qualifiedNamepublic boolean useDelegateToSubstitute()
public java.lang.String toString()
PsiElement
toString
in interface PsiElement
toString
in class AbstractLightClass