public class InlineMethodHandler extends JavaInlineActionHandler
EP_NAME| Modifier and Type | Method and Description |
|---|---|
boolean |
canInlineElement(PsiElement element) |
static boolean |
checkRecursive(PsiMethod method) |
java.lang.String |
getActionName(PsiElement element) |
void |
inlineElement(Project project,
Editor editor,
PsiElement element) |
static boolean |
isThisReference(PsiReference reference) |
static void |
performInline(Project project,
Editor editor,
PsiMethod method,
boolean allowInlineThisOnly)
Try to inline method, displaying UI or error message if necessary
|
isEnabledForLanguage, isJavaLanguagecanInlineElementInEditor, isEnabledOnElement, isEnabledOnElementpublic boolean canInlineElement(PsiElement element)
canInlineElement in class InlineActionHandlerpublic void inlineElement(Project project, Editor editor, PsiElement element)
inlineElement in class InlineActionHandlerpublic static void performInline(Project project, Editor editor, PsiMethod method, boolean allowInlineThisOnly)
project - project where method is declarededitor - active editor where cursor might point to the call sitemethod - method to be inlinedallowInlineThisOnly - if true, only call-site at cursor will be suggested
(in this case caller must check that cursor points to the valid reference)public static boolean checkRecursive(PsiMethod method)
public static boolean isThisReference(PsiReference reference)
public java.lang.String getActionName(PsiElement element)
getActionName in class InlineActionHandler