public class PsiJShellHolderMethodImpl extends ASTWrapperPsiElement implements PsiJShellHolderMethod
Iconable.IconFlags, Iconable.LastComputedIcon
FLAGS_LOCKED, ICON_PLACEHOLDER
EMPTY_ARRAY
ARRAY_FACTORY
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 |
---|
PsiJShellHolderMethodImpl(ASTNode node,
int index) |
Modifier and Type | Method and Description |
---|---|
PsiMethod |
findDeepestSuperMethod()
Returns the method in the deepest base superclass or interface of the containing class which
this method overrides or implements.
|
PsiMethod [] |
findDeepestSuperMethods() |
PsiMethod [] |
findSuperMethods()
Searches the superclasses and base interfaces of the containing class to find
the methods which this method overrides or implements.
|
PsiMethod [] |
findSuperMethods(boolean checkAccess)
Searches the superclasses and base interfaces of the containing class to find
the methods which this method overrides or implements, optionally omitting
the accessibility check.
|
PsiMethod [] |
findSuperMethods(PsiClass parentClass)
Searches the superclasses and base interfaces of the specified class to find
the methods which this method can override or implement.
|
java.util.List<MethodSignatureBackedByPsiMethod> |
findSuperMethodSignaturesIncludingStatic(boolean checkAccess)
Searches the superclasses and base interfaces of the containing class to find
static and instance methods with the signature matching the signature of this method.
|
PsiCodeBlock |
getBody()
Returns the body of the method.
|
PsiClass |
getContainingClass()
Returns the class containing the member.
|
PsiDocComment |
getDocComment()
Returns the JavaDoc comment for the element, or
null when the element has no JavaDoc comment. |
HierarchicalMethodSignature |
getHierarchicalMethodSignature() |
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 for the method.
|
PsiParameterList |
getParameterList()
Returns the parameter list for the method.
|
PsiType |
getReturnType()
Returns the return type of the method.
|
PsiTypeElement |
getReturnTypeElement()
Returns the type element for the return type of the method.
|
MethodSignature |
getSignature(PsiSubstitutor substitutor)
Returns the signature of this method, using the specified substitutor to specify
values of generic type parameters.
|
PsiElement [] |
getStatements() |
PsiReferenceList |
getThrowsList()
Returns the list of thrown exceptions for the method.
|
PsiTypeParameterList |
getTypeParameterList()
Returns the type parameter list for the element.
|
PsiTypeParameter [] |
getTypeParameters()
Returns the array of type parameters for the element.
|
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 |
isConstructor()
Checks if the method is a constructor.
|
boolean |
isDeprecated()
Returns
true if the element is marked as deprecated via an annotation or a JavaDoc tag. |
boolean |
isVarArgs()
Checks if the method accepts a variable number of arguments.
|
PsiElement |
setName(java.lang.String name)
Renames the element.
|
getNode, getParent, toString
add, addAfter, addBefore, addInternal, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildInternal, deleteChildRange, findChildByFilter, findChildByType, findChildByType, findChildrenByType, findChildrenByType, findChildrenByType, findChildrenByType, findElementAt, findLastChildByType, findNotNullChildByType, findNotNullChildByType, getChildren, getContainingFile, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNextSibling, getPrevSibling, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, putCopyableUserData, replace, replaceChildInternal, subtreeChanged, textContains, textMatches, textToCharArray
accept, acceptChildren, canNavigate, canNavigateToSource, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getContext, getNavigationElement, getOriginalElement, getPresentation, getProject, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, navigate, notNullChild, processDeclarations, textMatches
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParameters, getThrowsTypes, hasParameters
getIdentifyingElement
getPresentation
canNavigate, canNavigateToSource, navigate
getAnnotation, getAnnotations, getSourceElement, hasAnnotation, hasModifier
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
isWritable
getNavigationElement
public PsiJShellHolderMethodImpl(ASTNode node, int index)
public PsiElement [] getStatements()
getStatements
in interface PsiJShellHolderMethod
public java.lang.String getName()
PsiNamedElement
getName
in interface JvmMember
getName
in interface JvmMethod
getName
in interface JvmNamedElement
getName
in interface NavigationItem
getName
in interface PomNamedTarget
getName
in interface PsiMethod
getName
in interface PsiNamedElement
getName
in class PsiElementBase
Member.getName()
public PsiType getReturnType()
PsiMethod
getReturnType
in interface JvmMethod
getReturnType
in interface PsiMethod
Method.getGenericReturnType()
,
Method.getAnnotatedReturnType()
public PsiTypeElement getReturnTypeElement()
PsiMethod
getReturnTypeElement
in interface PsiMethod
public PsiParameterList getParameterList()
PsiMethod
getParameterList
in interface PsiMethod
getParameterList
in interface PsiParameterListOwner
public PsiReferenceList getThrowsList()
PsiMethod
getThrowsList
in interface PsiMethod
public PsiCodeBlock getBody()
PsiMethod
getBody
in interface PsiMethod
getBody
in interface PsiParameterListOwner
public boolean isConstructor()
PsiMethod
isConstructor
in interface JvmMethod
isConstructor
in interface PsiMethod
public boolean isVarArgs()
PsiMethod
public MethodSignature getSignature(PsiSubstitutor substitutor)
PsiMethod
getSignature
in interface PsiMethod
substitutor
- the substitutor.public PsiIdentifier getNameIdentifier()
PsiMethod
getNameIdentifier
in interface PsiMethod
getNameIdentifier
in interface PsiNameIdentifierOwner
public PsiMethod [] findSuperMethods()
PsiMethod
findSuperMethods
in interface PsiMethod
public PsiMethod [] findSuperMethods(boolean checkAccess)
PsiMethod
findSuperMethods
in interface PsiMethod
checkAccess
- if false, the super methods are searched even if this method
is private. If true, an empty result list is returned for private methods.public PsiMethod [] findSuperMethods(PsiClass parentClass)
PsiMethod
findSuperMethods
in interface PsiMethod
parentClass
- the class to search for super methods.public java.util.List<MethodSignatureBackedByPsiMethod> findSuperMethodSignaturesIncludingStatic(boolean checkAccess)
PsiMethod
findSuperMethodSignaturesIncludingStatic
in interface PsiMethod
checkAccess
- if false, the super methods are searched even if this method
is private. If true, an empty result list is returned for private methods.public PsiMethod findDeepestSuperMethod()
PsiMethod
findDeepestSuperMethod
in interface PsiMethod
public PsiMethod [] findDeepestSuperMethods()
findDeepestSuperMethods
in interface PsiMethod
public PsiModifierList getModifierList()
PsiModifierListOwner
getModifierList
in interface PsiMethod
getModifierList
in interface PsiModifierListOwner
public PsiElement setName(java.lang.String name) throws IncorrectOperationException
PsiNamedElement
setName
in interface PomRenameableTarget<PsiElement>
setName
in interface PsiMethod
setName
in interface PsiNamedElement
name
- 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 HierarchicalMethodSignature getHierarchicalMethodSignature()
getHierarchicalMethodSignature
in interface PsiMethod
public boolean isDeprecated()
PsiDocCommentOwner
true
if the element is marked as deprecated via an annotation or a JavaDoc tag.isDeprecated
in interface PsiDocCommentOwner
public PsiDocComment getDocComment()
PsiJavaDocumentedElement
null
when the element has no JavaDoc comment.getDocComment
in interface PsiJavaDocumentedElement
public boolean hasTypeParameters()
PsiTypeParameterListOwner
hasTypeParameters
in interface PsiTypeParameterListOwner
public PsiTypeParameterList getTypeParameterList()
PsiTypeParameterListOwner
getTypeParameterList
in interface PsiTypeParameterListOwner
public PsiTypeParameter [] getTypeParameters()
PsiTypeParameterListOwner
getTypeParameters
in interface JvmTypeParametersOwner
getTypeParameters
in interface PsiTypeParameterListOwner
GenericDeclaration.getTypeParameters()
public PsiClass getContainingClass()
PsiMember
getContainingClass
in interface JvmMember
getContainingClass
in interface PsiJvmMember
getContainingClass
in interface PsiMember
Member.getDeclaringClass()
public boolean hasModifierProperty(java.lang.String name)
PsiModifierListOwner
PsiModifier
class.hasModifierProperty
in interface PsiModifierListOwner
name
- the name of the modifier to check.