public class ClsTypeParameterImpl extends ClsRepositoryPsiElement<PsiTypeParameterStub> implements PsiTypeParameter
ClsElementImpl.InvalidMirrorExceptionIconable.IconFlags, Iconable.LastComputedIconCOMPILED_ELEMENT, NEXT_LINEFLAGS_LOCKED, ICON_PLACEHOLDERARRAY_FACTORY, EMPTY_ARRAYEMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_NAVIGATION_ITEM_ARRAYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY| Constructor and Description |
|---|
ClsTypeParameterImpl(PsiTypeParameterStub stub) |
| 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.
|
void |
appendMirrorText(int indentLevel,
java.lang.StringBuilder buffer) |
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.
|
PsiField |
findFieldByName(java.lang.String name,
boolean checkBases)
Searches the class (and optionally its superclasses) for the field with the specified name.
|
PsiClass |
findInnerClassByName(java.lang.String name,
boolean checkBases)
Searches the class (and optionally its superclasses) for the inner class with the specified name.
|
PsiMethod |
findMethodBySignature(PsiMethod patternMethod,
boolean checkBases)
Searches the class (and optionally its superclasses) for the method with
the signature matching the signature of the specified method.
|
java.util.List<Pair<PsiMethod,PsiSubstitutor>> |
findMethodsAndTheirSubstitutorsByName(java.lang.String name,
boolean checkBases)
Searches the class (and optionally its superclasses) for the methods with the specified name
and returns the methods along with their substitutors.
|
PsiMethod [] |
findMethodsByName(java.lang.String name,
boolean checkBases)
Searches the class (and optionally its superclasses) for the methods with the specified name.
|
PsiMethod [] |
findMethodsBySignature(PsiMethod patternMethod,
boolean checkBases)
Searches the class (and optionally its superclasses) for the methods with the signature
matching the signature of the specified method.
|
PsiField [] |
getAllFields()
Returns the list of fields in the class and all its superclasses.
|
PsiClass [] |
getAllInnerClasses()
Returns the list of inner classes for the class and all its superclasses.
|
PsiMethod [] |
getAllMethods()
Returns the list of methods in the class and all its superclasses.
|
java.util.List<Pair<PsiMethod,PsiSubstitutor>> |
getAllMethodsAndTheirSubstitutors()
Returns the list of methods in the class and all its superclasses, along with their
substitutors.
|
PsiAnnotation [] |
getAnnotations()
Returns the list of annotations syntactically contained in the element.
|
PsiAnnotation [] |
getApplicableAnnotations() |
PsiElement [] |
getChildren()
Returns the array of children for the PSI element.
|
PsiMethod [] |
getConstructors()
Returns the list of constructors for the class.
|
PsiClass |
getContainingClass()
For an inner class, returns its containing class.
|
PsiDocComment |
getDocComment()
Returns the JavaDoc comment for the element, or
null when the element has no JavaDoc comment. |
javax.swing.Icon |
getElementIcon(int flags) |
PsiReferenceList |
getExtendsList()
Returns the extends list of the type parameter.
|
PsiClassType [] |
getExtendsListTypes()
Returns the list of class types for the classes that this class or interface extends.
|
PsiField [] |
getFields()
Returns the list of fields in the class.
|
PsiReferenceList |
getImplementsList()
Returns the list of interfaces that this class implements.
|
PsiClassType [] |
getImplementsListTypes()
Returns the list of class types for the interfaces that this class implements.
|
int |
getIndex()
Returns the position of this type parameter in the type parameter list of the owner element.
|
PsiClassInitializer [] |
getInitializers()
Returns the list of class initializers for the class.
|
PsiClass [] |
getInnerClasses()
Returns the list of inner classes for the class.
|
PsiClass [] |
getInterfaces()
Returns the list of interfaces implemented by the class, or extended by the interface.
|
PsiJavaToken |
getLBrace()
Returns the token representing the opening curly brace of the class.
|
PsiMethod [] |
getMethods()
Returns the list of methods in the class.
|
PsiModifierList |
getModifierList()
Returns the list of modifiers for the element.
|
java.lang.String |
getName()
Returns the name of the element.
|
PsiIdentifier |
getNameIdentifier()
Returns the name identifier of the class.
|
PsiTypeParameterListOwner |
getOwner()
Returns the element which is parameterized by the type parameter.
|
java.lang.String |
getQualifiedName()
Returns the fully qualified name of the class.
|
PsiJavaToken |
getRBrace()
Returns the token representing the closing curly brace of the class.
|
PsiElement |
getScope()
Returns the PSI member in which the class has been declared (for example,
the method containing the anonymous inner class, or the file containing a regular
class, or the class owning a type parameter).
|
PsiClass |
getSuperClass()
Returns the base class of this class.
|
PsiClass [] |
getSupers()
Returns the list of classes and interfaces extended or implemented by the class.
|
PsiClassType [] |
getSuperTypes()
Returns the list of class types for the classes and interfaces extended or
implemented by the class.
|
PsiTypeParameterList |
getTypeParameterList()
Returns the type parameter list for the element.
|
PsiTypeParameter [] |
getTypeParameters()
Returns the array of type parameters for the element.
|
SearchScope |
getUseScope()
Returns the scope in which references to this element are searched.
|
java.util.Collection<HierarchicalMethodSignature> |
getVisibleSignatures()
Returns the hierarchical signatures for all methods in the specified class and
its superclasses and superinterfaces.
|
boolean |
hasModifierProperty(java.lang.String name)
Checks if the element has the specified modifier.
|
boolean |
hasTypeParameters()
Checks if the element has any type parameters.
|
boolean |
isAnnotationType()
Checks if the class is an annotation type.
|
boolean |
isDeprecated()
Returns
true if the element is marked as deprecated via an annotation or a JavaDoc tag. |
boolean |
isEnum()
Checks if the class is an enumeration.
|
boolean |
isEquivalentTo(PsiElement another)
This method shouldn't be called by clients directly, because there are no guarantees of it being symmetric.
|
boolean |
isInheritor(PsiClass baseClass,
boolean checkDeep)
Checks if this class is an inheritor of the specified base class.
|
boolean |
isInheritorDeep(PsiClass baseClass,
PsiClass classToByPass)
Checks if this class is a deep inheritor of the specified base class possibly bypassing a class
when checking inheritance chain.
|
boolean |
isInterface()
Checks if the class is an interface.
|
boolean |
processDeclarations(PsiScopeProcessor processor,
ResolveState state,
PsiElement lastParent,
PsiElement place)
Passes the declarations contained in this PSI element and its children
for processing to the specified scope processor.
|
void |
setMirror(TreeElement element) |
PsiElement |
setName(java.lang.String name)
Renames the element.
|
java.lang.String |
toString()
toString() should never be presented to the user.
|
getContainingFile, getElementType, getFirstChild, getLastChild, getManager, getNextSibling, getParent, getPrevSibling, getStub, isPhysicaladd, addAfter, addBefore, appendText, appendText, checkAdd, checkDelete, copy, delete, findElementAt, findReferenceAt, getChildren, getIndentSize, getLanguage, getMirror, getNode, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, isValid, isWritable, replace, setMirror, setMirrorCheckingType, setMirrorIfPresent, setMirrors, setMirrors, textMatches, textMatches, textToCharArrayacceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, getContext, getNavigationElement, getOriginalElement, getPresentation, getProject, getReference, getReferences, getResolveScope, navigate, notNullChild, textContainsbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlagschangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, getBounds, hasAnnotationfindMethodsByName, getClassKind, getInterfaceTypes, getRecordComponents, getRecordHeader, getSuperClassType, isRecordgetIdentifyingElementgetPresentationcanNavigate, canNavigateToSource, navigategetAnnotation, getSourceElement, hasModifieracceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getNode, getOriginalElement, getOwnReferences, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, isPhysical, isValid, isWritable, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArraygetUserData, putUserDatagetNavigationElementisWritablepublic ClsTypeParameterImpl(PsiTypeParameterStub stub)
public java.lang.String getQualifiedName()
PsiClassgetQualifiedName in interface JvmClassgetQualifiedName in interface PsiClassgetQualifiedName in interface PsiQualifiedNamedElementClass.getCanonicalName()public boolean isInterface()
PsiClassisInterface in interface PsiClasspublic boolean isAnnotationType()
PsiClassisAnnotationType in interface PsiClasspublic boolean isEnum()
PsiClasspublic PsiField [] getFields()
PsiClasspublic PsiMethod [] getMethods()
PsiClassgetMethods in interface JvmClassgetMethods in interface PsiClassClass.getDeclaredMethods(),
Class.getDeclaredConstructors()public PsiMethod findMethodBySignature(PsiMethod patternMethod, boolean checkBases)
PsiClassfindMethodBySignature in interface PsiClasspatternMethod - the method used as a pattern for the search.checkBases - if true, the method is also searched in the base classes of the class.public PsiMethod [] findMethodsBySignature(PsiMethod patternMethod, boolean checkBases)
PsiClassfindMethodsBySignature in interface PsiClasspatternMethod - the method used as a pattern for the search.checkBases - if true, the method is also searched in the base classes of the class.public PsiField findFieldByName(java.lang.String name, boolean checkBases)
PsiClassfindFieldByName in interface PsiClassname - the name of the field to find.checkBases - if true, the field is also searched in the base classes of the class.public PsiMethod [] findMethodsByName(java.lang.String name, boolean checkBases)
PsiClassfindMethodsByName in interface PsiClassname - the name of the methods to find.checkBases - if true, the methods are also searched in the base classes of the class.public java.util.List<Pair<PsiMethod,PsiSubstitutor>> findMethodsAndTheirSubstitutorsByName(java.lang.String name, boolean checkBases)
PsiClassfindMethodsAndTheirSubstitutorsByName in interface PsiClassname - the name of the methods to find.checkBases - if true, the methods are also searched in the base classes of the class.public java.util.List<Pair<PsiMethod,PsiSubstitutor>> getAllMethodsAndTheirSubstitutors()
PsiClassgetAllMethodsAndTheirSubstitutors in interface PsiClasspublic PsiClass findInnerClassByName(java.lang.String name, boolean checkBases)
PsiClassfindInnerClassByName in interface PsiClassname - the name of the inner class to find.checkBases - if true, the inner class is also searched in the base classes of the class.public PsiTypeParameterList getTypeParameterList()
PsiTypeParameterListOwnergetTypeParameterList in interface PsiTypeParameterListOwnerpublic boolean hasTypeParameters()
PsiTypeParameterListOwnerhasTypeParameters in interface PsiTypeParameterListOwnerpublic PsiElement getScope()
PsiClasspublic boolean isInheritorDeep(PsiClass baseClass, PsiClass classToByPass)
PsiClassClassInheritorsSearch
may return classes that are inheritors in broader, e.g. in ejb sense, but not in java sense.isInheritorDeep in interface PsiClassbaseClass - the base class to check the inheritance.
searched in the entire inheritance chainclassToByPass - class to bypass the inheritance check forpublic boolean isInheritor(PsiClass baseClass, boolean checkDeep)
PsiClassClassInheritorsSearch
may return classes that are inheritors in broader, e.g. in ejb sense, but not in java sense.isInheritor in interface PsiClassbaseClass - the base class to check the inheritance.checkDeep - if false, only direct inheritance is checked; if true, the base class is
searched in the entire inheritance chainpublic PsiIdentifier getNameIdentifier()
PsiClassgetNameIdentifier in interface PsiClassgetNameIdentifier in interface PsiNameIdentifierOwnerpublic boolean processDeclarations(PsiScopeProcessor processor, ResolveState state, PsiElement lastParent, PsiElement place)
PsiElementprocessDeclarations in interface PsiElementprocessDeclarations in class PsiElementBaseprocessor - the processor receiving the declarations.lastParent - the child of this element has been processed during the previous
step of the tree up walk (declarations under this element do not need
to be processed again)place - the original element from which the tree up walk was initiated.public java.lang.String getName()
PsiNamedElementgetName in interface JvmClassgetName in interface JvmMembergetName in interface JvmNamedElementgetName in interface NavigationItemgetName in interface PomNamedTargetgetName in interface PsiNamedElementgetName in interface PsiQualifiedNamedElementgetName in class PsiElementBaseMember.getName()public PsiElement setName(java.lang.String name) throws IncorrectOperationException
PsiNamedElementsetName in interface PomRenameableTarget<PsiElement>setName in interface PsiClasssetName in interface PsiNamedElementname - the new element name.this
or a different element if the rename caused the element to be replaced).IncorrectOperationException - if the modification is not supported or not possible for some reason.public PsiMethod [] getConstructors()
PsiClassgetConstructors in interface PsiClasspublic PsiDocComment getDocComment()
PsiJavaDocumentedElementnull when the element has no JavaDoc comment.getDocComment in interface PsiJavaDocumentedElementpublic boolean isDeprecated()
PsiDocCommentOwnertrue if the element is marked as deprecated via an annotation or a JavaDoc tag.isDeprecated in interface PsiDocCommentOwnerpublic PsiReferenceList getExtendsList()
PsiTypeParametergetExtendsList in interface PsiClassgetExtendsList in interface PsiTypeParameterpublic PsiReferenceList getImplementsList()
PsiClassgetImplementsList in interface PsiClasspublic PsiClassType [] getExtendsListTypes()
PsiClassgetExtendsListTypes in interface PsiClasspublic PsiClassType [] getImplementsListTypes()
PsiClassgetImplementsListTypes in interface PsiClasspublic PsiClass [] getInnerClasses()
PsiClassgetInnerClasses in interface JvmClassgetInnerClasses in interface PsiClassClass.getDeclaredClasses()public PsiField [] getAllFields()
PsiClassgetAllFields in interface PsiClasspublic PsiMethod [] getAllMethods()
PsiClassgetAllMethods in interface PsiClasspublic PsiClass [] getAllInnerClasses()
PsiClassgetAllInnerClasses in interface PsiClasspublic PsiClassInitializer [] getInitializers()
PsiClassgetInitializers in interface PsiClasspublic PsiTypeParameter [] getTypeParameters()
PsiTypeParameterListOwnergetTypeParameters in interface JvmTypeParametersOwnergetTypeParameters in interface PsiTypeParameterListOwnerGenericDeclaration.getTypeParameters()public PsiClass getSuperClass()
PsiClassgetSuperClass in interface PsiClasspublic PsiClass [] getInterfaces()
PsiClassgetInterfaces in interface PsiClasspublic PsiClass [] getSupers()
PsiClasspublic PsiClassType [] getSuperTypes()
PsiClassgetSuperTypes in interface PsiClasspublic PsiClass getContainingClass()
PsiClassgetContainingClass in interface JvmMembergetContainingClass in interface PsiClassgetContainingClass in interface PsiJvmMembergetContainingClass in interface PsiMemberMember.getDeclaringClass()public java.util.Collection<HierarchicalMethodSignature> getVisibleSignatures()
PsiClassgetVisibleSignatures in interface PsiClasspublic PsiModifierList getModifierList()
PsiModifierListOwnergetModifierList in interface PsiModifierListOwnerpublic boolean hasModifierProperty(java.lang.String name)
PsiModifierListOwnerPsiModifier class.hasModifierProperty in interface PsiModifierListOwnername - the name of the modifier to check.public PsiJavaToken getLBrace()
PsiClasspublic PsiJavaToken getRBrace()
PsiClasspublic void accept(PsiElementVisitor visitor)
PsiElementaccept in interface PsiElementaccept in class PsiElementBasevisitor - the visitor to pass the element to.public java.lang.String toString()
PsiElementtoString in interface PsiElementtoString in class java.lang.Objectpublic void appendMirrorText(int indentLevel,
java.lang.StringBuilder buffer)
appendMirrorText in class ClsElementImplpublic void setMirror(TreeElement element) throws ClsElementImpl.InvalidMirrorException
setMirror in class ClsElementImplClsElementImpl.InvalidMirrorExceptionpublic PsiElement [] getChildren()
PsiElementgetChildren in interface PsiElementgetChildren in class ClsRepositoryPsiElement<PsiTypeParameterStub>public PsiTypeParameterListOwner getOwner()
PsiTypeParametergetOwner in interface JvmTypeParametergetOwner in interface PsiTypeParameterTypeVariable.getGenericDeclaration()public int getIndex()
PsiTypeParametergetIndex in interface PsiTypeParameterpublic javax.swing.Icon getElementIcon(int flags)
getElementIcon in class ElementBasepublic boolean isEquivalentTo(PsiElement another)
PsiElementPsiManager.areElementsEquivalent(PsiElement, PsiElement) internally, which clients should invoke instead.
Implementations of this method should return true if the parameter is resolve-equivalent to this, i.e. it represents
the same entity from the language perspective. See also PsiManager.areElementsEquivalent(PsiElement, PsiElement) documentation.isEquivalentTo in interface PsiElementisEquivalentTo in class PsiElementBasepublic SearchScope getUseScope()
PsiElementgetUseScope in interface PsiElementgetUseScope in class PsiElementBasePsiSearchHelper.getUseScope(PsiElement)public PsiAnnotation [] getAnnotations()
PsiAnnotationOwnergetAnnotations in interface JvmAnnotatedElementgetAnnotations in interface PsiAnnotationOwnergetAnnotations in interface PsiJvmModifiersOwnergetAnnotations in interface PsiModifierListOwnergetAnnotations in interface PsiTypeParameterpublic PsiAnnotation findAnnotation(java.lang.String qualifiedName)
PsiAnnotationOwnerfindAnnotation in interface PsiAnnotationOwnerqualifiedName - the fully qualified name of the annotation to find.public PsiAnnotation addAnnotation(java.lang.String qualifiedName)
PsiAnnotationOwneraddAnnotation in interface PsiAnnotationOwnerqualifiedName - qualifiedNamepublic PsiAnnotation [] getApplicableAnnotations()
getApplicableAnnotations in interface PsiAnnotationOwner