com.intellij.psi
Interface PsiTypeParameterListOwner

All Superinterfaces:
Iconable, Navigatable, NavigationItem, PsiElement, PsiMember, PsiModifierListOwner, UserDataHolder
All Known Subinterfaces:
PsiAnnotationMethod, PsiAnonymousClass, PsiAspect, PsiAspectMethod, PsiClass, PsiEnumConstantInitializer, PsiIntertypeMethod, PsiMethod, PsiTypeParameter

public interface PsiTypeParameterListOwner
extends PsiMember

Represents a PSI element (class, interface, method or constructor) which can own a type parameter list.


Field Summary
 
Fields inherited from interface com.intellij.psi.PsiMember
EMPTY_ARRAY
 
Fields inherited from interface com.intellij.openapi.util.Iconable
ICON_FLAG_CLOSED, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
 
Method Summary
 PsiTypeParameterList getTypeParameterList()
          Returns the type parameter list for the element.
 PsiTypeParameter[] getTypeParameters()
          Returns the array of type parameters for the element.
 boolean hasTypeParameters()
          Checks if the element has any type parameters.
 
Methods inherited from interface com.intellij.psi.PsiMember
getContainingClass
 
Methods inherited from interface com.intellij.psi.PsiModifierListOwner
getModifierList, hasModifierProperty
 
Methods inherited from interface com.intellij.psi.PsiElement
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, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getUseScope, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray
 
Methods inherited from interface com.intellij.openapi.util.UserDataHolder
getUserData, putUserData
 
Methods inherited from interface com.intellij.openapi.util.Iconable
getIcon
 
Methods inherited from interface com.intellij.navigation.NavigationItem
getFileStatus, getName, getPresentation
 
Methods inherited from interface com.intellij.pom.Navigatable
canNavigate, canNavigateToSource, navigate
 

Method Detail

hasTypeParameters

boolean hasTypeParameters()
Checks if the element has any type parameters.

Returns:
true if the element has type parameters, false otherwise

getTypeParameterList

@Nullable
PsiTypeParameterList getTypeParameterList()
Returns the type parameter list for the element.

Returns:
the type parameter list, or null if the element has no type parameters.

getTypeParameters

@NotNull
PsiTypeParameter[] getTypeParameters()
Returns the array of type parameters for the element.

Returns:
the array of type parameters, or an empty array if the element has no type parameters.