public class PsiMethodPattern extends PsiMemberPattern<PsiMethod,PsiMethodPattern>
PsiMemberPattern.Capture
Constructor and Description |
---|
PsiMethodPattern() |
Modifier and Type | Method and Description |
---|---|
PsiMethodPattern |
constructor(boolean isConstructor) |
PsiMethodPattern |
definedInClass(ElementPattern<? extends PsiClass> pattern) |
PsiMethodPattern |
definedInClass(java.lang.String qname) |
PsiMethodPattern |
withParameterCount(int paramCount) |
PsiMethodPattern |
withParameters(java.lang.String... inputTypes)
Selects the corrected method by argument types
|
PsiMethodPattern |
withThrowsList(ElementPattern<?> pattern) |
inClass, inClass
withAnnotation, withAnnotations, withModifiers, withoutModifiers
afterLeaf, afterLeaf, afterLeafSkipping, atStartOf, beforeLeaf, beforeLeaf, beforeLeafSkipping, compiled, equalTo, getChildren, getParent, inFile, insideStarting, inVirtualFile, notEmpty, referencing, whitespace, whitespaceCommentEmptyOrError, whitespaceCommentOrError, withElementType, withElementType, withElementType, withFirstNonWhitespaceChild, withLanguage, withLastChildSkipping, withMetaData, withName, withName, withName, withoutText, withoutText, withReference, withText, withText, withTextLength, withTextLengthLongerThan, withTreeParent
afterSibling, afterSiblingSkipping, inside, inside, inside, inside, insideSequence, isFirstAcceptedChild, withAncestor, withChild, withChildren, withFirstChild, withLastChild, withParent, withParent, withParents, withSuperParent, withSuperParent
public PsiMethodPattern withParameterCount(int paramCount)
public PsiMethodPattern withParameters(java.lang.String... inputTypes)
inputTypes
- the array of FQN of the parameter types or wildcards.
The special values are:public PsiMethodPattern definedInClass(java.lang.String qname)
public PsiMethodPattern definedInClass(ElementPattern<? extends PsiClass> pattern)
public PsiMethodPattern constructor(boolean isConstructor)
public PsiMethodPattern withThrowsList(ElementPattern<?> pattern)