public class LightTypeParameterBuilder extends LightPsiClassBuilder 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 |
---|
LightTypeParameterBuilder(java.lang.String name,
PsiTypeParameterListOwner owner,
int index) |
Modifier and Type | Method and Description |
---|---|
PsiAnnotation |
addAnnotation(java.lang.String qualifiedName)
Adds a new annotation to this owner.
|
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() |
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.
|
addMethod, getContainingClass, getExtendsList, getFields, getImplementsList, getInitializers, getInnerClasses, getMethods, getModifierList, getOriginInfo, getScope, getTypeParameterList, isEquivalentTo, setContainingClass, setOriginInfo, setScope
findFieldByName, findInnerClassByName, findMethodBySignature, findMethodsAndTheirSubstitutorsByName, findMethodsByName, findMethodsBySignature, getAllFields, getAllInnerClasses, getAllMethods, getAllMethodsAndTheirSubstitutors, getConstructors, getDocComment, getExtendsListTypes, getImplementsListTypes, getInterfaces, getLBrace, getName, getNameIdentifier, getQualifiedName, getRBrace, getSuperClass, getSupers, getSuperTypes, getTypeParameters, getVisibleSignatures, hasModifierProperty, hasTypeParameters, isAnnotationType, isDeprecated, isEnum, isInheritor, isInheritorDeep, isInterface, processDeclarations, setName, toString
accept, add, addAfter, addBefore, checkAdd, checkDelete, copy, delete, findElementAt, getChildren, getContainingFile, getLanguage, getManager, getNavigationElement, getNextSibling, getNode, getParent, getPrevSibling, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, isPhysical, isValid, isWritable, replace, setNavigationElement, textMatches, textMatches, textToCharArray
acceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getContext, 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
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
public LightTypeParameterBuilder(java.lang.String name, PsiTypeParameterListOwner owner, int index)
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
- qualifiedName