|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PsiMethod
Represents a Java method or constructor.
PsiClass.getMethods()| Field Summary | |
|---|---|
static PsiMethod[] |
EMPTY_ARRAY
The empty array of PSI methods which can be reused to avoid unnecessary allocations. |
| Fields inherited from interface com.intellij.openapi.util.Iconable |
|---|
ICON_FLAG_CLOSED, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY |
| Fields inherited from interface com.intellij.openapi.util.Iconable |
|---|
ICON_FLAG_CLOSED, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY |
| Fields inherited from interface com.intellij.openapi.util.Iconable |
|---|
ICON_FLAG_CLOSED, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY |
| Method Summary | |
|---|---|
PsiMethod |
findDeepestSuperMethod()
Returns the method in the deepest base superclass or interface of the containing class which this method overrides or implements. |
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. |
PsiModifierList |
getModifierList()
Returns the list of modifiers for the element. |
PsiIdentifier |
getNameIdentifier()
Returns the name identifier for the method. |
PsiParameterList |
getParameterList()
Returns the parameter list for the method. |
PomMethod |
getPom()
Returns the POM representation of 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. |
PsiReferenceList |
getThrowsList()
Returns the list of thrown exceptions for the method. |
boolean |
isConstructor()
Checks if the method is a constructor. |
boolean |
isVarArgs()
Checks if the method accepts a variable number of arguments. |
| Methods inherited from interface com.intellij.psi.PsiMember |
|---|
getContainingClass |
| Methods inherited from interface com.intellij.psi.PsiModifierListOwner |
|---|
hasModifierProperty |
| 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 |
| Methods inherited from interface com.intellij.psi.PsiNamedElement |
|---|
getName, setName |
| Methods inherited from interface com.intellij.psi.PsiDocCommentOwner |
|---|
getDocComment, isDeprecated |
| Methods inherited from interface com.intellij.psi.PsiMember |
|---|
getContainingClass |
| Methods inherited from interface com.intellij.psi.PsiModifierListOwner |
|---|
hasModifierProperty |
| 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 |
| Methods inherited from interface com.intellij.psi.PsiTypeParameterListOwner |
|---|
getTypeParameterList, getTypeParameters, hasTypeParameters |
| Methods inherited from interface com.intellij.psi.PsiMember |
|---|
getContainingClass |
| Methods inherited from interface com.intellij.psi.PsiModifierListOwner |
|---|
hasModifierProperty |
| 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 |
| Field Detail |
|---|
static final PsiMethod[] EMPTY_ARRAY
| Method Detail |
|---|
@Nullable PsiType getReturnType()
@Nullable PsiTypeElement getReturnTypeElement()
@NotNull PsiParameterList getParameterList()
@NotNull PsiReferenceList getThrowsList()
PsiCodeBlock getBody()
boolean isConstructor()
boolean isVarArgs()
MethodSignature getSignature(PsiSubstitutor substitutor)
substitutor - the substitutor.
PsiIdentifier getNameIdentifier()
@NotNull PsiMethod[] findSuperMethods()
@NotNull PsiMethod[] findSuperMethods(boolean checkAccess)
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.
PsiMethod[] findSuperMethods(PsiClass parentClass)
parentClass - the class to search for super methods.
java.util.List<MethodSignatureBackedByPsiMethod> findSuperMethodSignaturesIncludingStatic(boolean checkAccess)
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.
@Nullable PsiMethod findDeepestSuperMethod()
PomMethod getPom()
POM representation of the method.
@NotNull PsiModifierList getModifierList()
PsiModifierListOwner
getModifierList in interface PsiModifierListOwner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||