Class DecompilationController

    • Constructor Detail

      • DecompilationController

        public DecompilationController​(MainFrameView mainFrameView,
                                       Model model,
                                       boolean isVerbose)
    • Method Detail

      • createConfigurationEditor

        private void createConfigurationEditor()
      • createNewConnectionDialog

        private void createNewConnectionDialog()
      • createNewFsVMDialog

        private void createNewFsVMDialog()
      • removeVmDialog

        private void removeVmDialog​(java.awt.event.ActionEvent event)
      • exitOnEmpty

        private boolean exitOnEmpty​(java.lang.String vmType,
                                    VmInfo selectedVm)
      • warnOnOvveridesOfFsVm

        private boolean warnOnOvveridesOfFsVm​(VmInfo selectedVm)
      • warnOnOvveridesOfFsVm

        public static boolean warnOnOvveridesOfFsVm​(VmInfo vmInfo,
                                                    javax.swing.JFrame parent)
      • updateVmLists

        private void updateVmLists()
      • changeVm

        private void changeVm​(java.awt.event.ActionEvent event)
      • clearOtherList

        private void clearOtherList​(javax.swing.JList<VmInfo> vmList)
        If selected list is remoteVmList clears localVmList and vice versa.
        Effectively merging them into one.
        Parameters:
        vmList - list that doesn't get cleared containing the VM that user wants to attach.
      • showLoadingDialog

        private void showLoadingDialog​(java.lang.String title)
      • cleanup

        private void cleanup​(boolean halt)
      • abortClassLoading

        private void abortClassLoading()
      • initClass

        private void initClass​(java.lang.String fqn)
      • addClass

        private void addClass​(java.lang.String fqnSpaceBody)
      • addJar

        private void addJar​(java.lang.String fqnSpaceBody)
      • loadClassNames

        private void loadClassNames()
        Sends request for classes. If "ok" response is received updates classes list. If "error" response is received shows an error dialog.
      • searchInClasses

        private void searchInClasses​(java.lang.String substringAndRegex)
      • loadClassBytecode

        private void loadClassBytecode​(java.lang.String name)
      • getVm

        public java.lang.String getVm()
      • getOverrides

        public java.lang.String[] getOverrides()
      • removeOverrides

        public void removeOverrides​(java.lang.String pattern)
      • getSingleClassFromRunningVmCatched

        private java.util.Collection<io.github.mkoncek.classpathless.api.IdentifiedBytecode> getSingleClassFromRunningVmCatched​(java.lang.String fqn)
      • getMethodsFromClassInRunningVmCatched

        private java.lang.String[] getMethodsFromClassInRunningVmCatched​(CompletionSettings settings,
                                                                         java.lang.String fqn)
      • getMethodsFromClassInRunningVm

        private java.lang.String[] getMethodsFromClassInRunningVm​(CompletionSettings settings,
                                                                  java.lang.String fqn)
      • fileToBase64

        public static java.lang.String fileToBase64​(java.lang.String path,
                                                    boolean deHex)
      • stdinToBase64

        public static java.lang.String stdinToBase64​(boolean deHex)
      • fileToBytes

        public static byte[] fileToBytes​(java.lang.String path)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • fileToLines

        public static java.util.List<java.lang.String> fileToLines​(java.lang.String path)
                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • stdinToBytes

        public static byte[] stdinToBytes()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • stdinToStrings

        public static java.util.List<java.lang.String> stdinToStrings()
                                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • bytesToBase64

        public static java.lang.String bytesToBase64​(byte[] bytes)
      • haltAgent

        private void haltAgent()
      • killAllSession

        private void killAllSession()
      • createFilter

        private java.lang.String createFilter​(java.lang.String text,
                                              int caretPosition)