Package org.intellij.grammar.refactor
Class BnfIntroduceRuleHandler
java.lang.Object
org.intellij.grammar.refactor.BnfIntroduceRuleHandler
- All Implemented Interfaces:
com.intellij.refactoring.RefactoringActionHandler
public class BnfIntroduceRuleHandler
extends Object
implements com.intellij.refactoring.RefactoringActionHandler
Created by IntelliJ IDEA.
Date: 8/16/11
Time: 5:25 PM
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final com.intellij.util.Function<BnfExpression,String> -
Constructor Summary
ConstructorsConstructorDescriptionBnfIntroduceRuleHandler(@Nullable com.intellij.util.Function<? super List<BnfExpression>, ? extends BnfExpression> popupVariantsHandler) -
Method Summary
Modifier and TypeMethodDescriptionstatic BnfRuleaddNextRule(com.intellij.openapi.project.Project project, BnfRule currentRule, String newRuleText) static booleanendsWithSemicolon(BnfRule rule) voidinvoke(@NotNull com.intellij.openapi.project.Project project, com.intellij.openapi.editor.Editor editor, com.intellij.psi.PsiFile file, @Nullable com.intellij.openapi.actionSystem.DataContext dataContext) voidinvoke(@NotNull com.intellij.openapi.project.Project project, com.intellij.psi.PsiElement @NotNull [] elements, com.intellij.openapi.actionSystem.DataContext dataContext)
-
Field Details
-
REFACTORING_NAME
- See Also:
-
RENDER_FUNCTION
-
-
Constructor Details
-
BnfIntroduceRuleHandler
public BnfIntroduceRuleHandler() -
BnfIntroduceRuleHandler
@TestOnly public BnfIntroduceRuleHandler(@Nullable @Nullable com.intellij.util.Function<? super List<BnfExpression>, ? extends BnfExpression> popupVariantsHandler)
-
-
Method Details
-
invoke
public void invoke(@NotNull @NotNull com.intellij.openapi.project.Project project, com.intellij.psi.PsiElement @NotNull [] elements, com.intellij.openapi.actionSystem.DataContext dataContext) - Specified by:
invokein interfacecom.intellij.refactoring.RefactoringActionHandler
-
invoke
public void invoke(@NotNull @NotNull com.intellij.openapi.project.Project project, com.intellij.openapi.editor.Editor editor, com.intellij.psi.PsiFile file, @Nullable @Nullable com.intellij.openapi.actionSystem.DataContext dataContext) - Specified by:
invokein interfacecom.intellij.refactoring.RefactoringActionHandler
-
addNextRule
-
endsWithSemicolon
-