public class InlineToAnonymousClassHandler extends JavaInlineActionHandler
EP_NAME| Constructor and Description |
|---|
InlineToAnonymousClassHandler() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canBeInvokedOnReference(PsiCall callToInline,
PsiType superType) |
boolean |
canInlineElement(PsiElement element) |
boolean |
canInlineElementInEditor(PsiElement element,
Editor editor) |
static PsiCall |
findCallToInline(Editor editor) |
java.lang.String |
getActionName(PsiElement element) |
static java.lang.String |
getCannotInlineMessage(PsiClass psiClass) |
void |
inlineElement(Project project,
Editor editor,
PsiElement psiElement) |
boolean |
isEnabledOnElement(PsiElement element)
Fast check to see if the handler can possibly inline the element.
|
isEnabledForLanguage, isJavaLanguageisEnabledOnElementpublic boolean isEnabledOnElement(PsiElement element)
InlineActionHandlerisEnabledOnElement in class InlineActionHandlerelement - the element under caretpublic boolean canInlineElement(PsiElement element)
canInlineElement in class InlineActionHandlerpublic boolean canInlineElementInEditor(PsiElement element, Editor editor)
canInlineElementInEditor in class InlineActionHandlerpublic void inlineElement(Project project, Editor editor, PsiElement psiElement)
inlineElement in class InlineActionHandlerpublic static boolean canBeInvokedOnReference(PsiCall callToInline, PsiType superType)
public static java.lang.String getCannotInlineMessage(PsiClass psiClass)
public java.lang.String getActionName(PsiElement element)
getActionName in class InlineActionHandler