Class BnfIntroduceRuleHandler

  • All Implemented Interfaces:
    com.intellij.refactoring.RefactoringActionHandler

    public class BnfIntroduceRuleHandler
    extends java.lang.Object
    implements com.intellij.refactoring.RefactoringActionHandler
    Created by IntelliJ IDEA. Date: 8/16/11 Time: 5:25 PM
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static BnfRule addNextRule​(com.intellij.openapi.project.Project project, BnfRule currentRule, java.lang.String newRuleText)  
      static boolean endsWithSemicolon​(BnfRule rule)  
      void invoke​(@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)  
      void invoke​(@NotNull com.intellij.openapi.project.Project project, com.intellij.psi.PsiElement @NotNull [] elements, com.intellij.openapi.actionSystem.DataContext dataContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • REFACTORING_NAME

        public static final java.lang.String REFACTORING_NAME
        See Also:
        Constant Field Values
      • RENDER_FUNCTION

        public static final com.intellij.util.Function<BnfExpression,​java.lang.String> RENDER_FUNCTION
    • Constructor Detail

      • BnfIntroduceRuleHandler

        public BnfIntroduceRuleHandler()
      • BnfIntroduceRuleHandler

        @TestOnly
        public BnfIntroduceRuleHandler​(@Nullable
                                       @Nullable com.intellij.util.Function<java.util.List<BnfExpression>,​BnfExpression> popupVariantsHandler)
    • Method Detail

      • 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,
                                          java.lang.String newRuleText)
      • endsWithSemicolon

        public static boolean endsWithSemicolon​(BnfRule rule)