Class BnfUnwrapDescriptor

  • All Implemented Interfaces:
    com.intellij.codeInsight.unwrap.UnwrapDescriptor, com.intellij.codeInsight.unwrap.Unwrapper

    public class BnfUnwrapDescriptor
    extends java.lang.Object
    implements com.intellij.codeInsight.unwrap.UnwrapDescriptor, com.intellij.codeInsight.unwrap.Unwrapper
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.intellij.psi.PsiElement collectAffectedElements​(@NotNull com.intellij.psi.PsiElement element, @NotNull java.util.List<com.intellij.psi.PsiElement> toExtract)  
      void collectElementsToIgnore​(@NotNull com.intellij.psi.PsiElement element, @NotNull java.util.Set<com.intellij.psi.PsiElement> result)  
      java.util.List<com.intellij.openapi.util.Pair<com.intellij.psi.PsiElement,​com.intellij.codeInsight.unwrap.Unwrapper>> collectUnwrappers​(@NotNull com.intellij.openapi.project.Project project, @NotNull com.intellij.openapi.editor.Editor editor, @NotNull com.intellij.psi.PsiFile file)  
      @NotNull java.lang.String getDescription​(com.intellij.psi.PsiElement e)  
      boolean isApplicableTo​(@NotNull com.intellij.psi.PsiElement e)  
      boolean shouldTryToRestoreCaretPosition()  
      boolean showOptionsDialog()  
      @NotNull java.util.List<com.intellij.psi.PsiElement> unwrap​(@NotNull com.intellij.openapi.editor.Editor editor, com.intellij.psi.PsiElement element)  
      • Methods inherited from class java.lang.Object

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

      • BnfUnwrapDescriptor

        public BnfUnwrapDescriptor()
    • Method Detail

      • collectUnwrappers

        public java.util.List<com.intellij.openapi.util.Pair<com.intellij.psi.PsiElement,​com.intellij.codeInsight.unwrap.Unwrapper>> collectUnwrappers​(@NotNull
                                                                                                                                                             @NotNull com.intellij.openapi.project.Project project,
                                                                                                                                                             @NotNull
                                                                                                                                                             @NotNull com.intellij.openapi.editor.Editor editor,
                                                                                                                                                             @NotNull
                                                                                                                                                             @NotNull com.intellij.psi.PsiFile file)
        Specified by:
        collectUnwrappers in interface com.intellij.codeInsight.unwrap.UnwrapDescriptor
      • showOptionsDialog

        public boolean showOptionsDialog()
        Specified by:
        showOptionsDialog in interface com.intellij.codeInsight.unwrap.UnwrapDescriptor
      • shouldTryToRestoreCaretPosition

        public boolean shouldTryToRestoreCaretPosition()
        Specified by:
        shouldTryToRestoreCaretPosition in interface com.intellij.codeInsight.unwrap.UnwrapDescriptor
      • isApplicableTo

        public boolean isApplicableTo​(@NotNull
                                      @NotNull com.intellij.psi.PsiElement e)
        Specified by:
        isApplicableTo in interface com.intellij.codeInsight.unwrap.Unwrapper
      • collectElementsToIgnore

        public void collectElementsToIgnore​(@NotNull
                                            @NotNull com.intellij.psi.PsiElement element,
                                            @NotNull
                                            @NotNull java.util.Set<com.intellij.psi.PsiElement> result)
        Specified by:
        collectElementsToIgnore in interface com.intellij.codeInsight.unwrap.Unwrapper
      • getDescription

        @NotNull
        public @NotNull java.lang.String getDescription​(com.intellij.psi.PsiElement e)
        Specified by:
        getDescription in interface com.intellij.codeInsight.unwrap.Unwrapper
      • collectAffectedElements

        public com.intellij.psi.PsiElement collectAffectedElements​(@NotNull
                                                                   @NotNull com.intellij.psi.PsiElement element,
                                                                   @NotNull
                                                                   @NotNull java.util.List<com.intellij.psi.PsiElement> toExtract)
        Specified by:
        collectAffectedElements in interface com.intellij.codeInsight.unwrap.Unwrapper
      • unwrap

        @NotNull
        public @NotNull java.util.List<com.intellij.psi.PsiElement> unwrap​(@NotNull
                                                                           @NotNull com.intellij.openapi.editor.Editor editor,
                                                                           com.intellij.psi.PsiElement element)
                                                                    throws com.intellij.util.IncorrectOperationException
        Specified by:
        unwrap in interface com.intellij.codeInsight.unwrap.Unwrapper
        Throws:
        com.intellij.util.IncorrectOperationException