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 Details

  • 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:
      invoke in interface com.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:
      invoke in interface com.intellij.refactoring.RefactoringActionHandler
    • addNextRule

      public static BnfRule addNextRule(com.intellij.openapi.project.Project project, BnfRule currentRule, String newRuleText)
    • endsWithSemicolon

      public static boolean endsWithSemicolon(BnfRule rule)