Class Commands.ReExecute

  • Enclosing class:
    Commands

    private static class Commands.ReExecute
    extends java.lang.Object
    • Field Detail

      • execute

        private final boolean execute
      • edit

        private final boolean edit
      • oldParam

        private java.lang.String oldParam
      • newParam

        private java.lang.String newParam
      • cmdWriter

        private java.io.FileWriter cmdWriter
      • cmdFile

        private java.io.File cmdFile
      • argId

        private int argId
    • Constructor Detail

      • ReExecute

        public ReExecute​(History history,
                         Options opt)
                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getArgId

        public int getArgId()
      • isEdit

        public boolean isEdit()
      • isExecute

        public boolean isExecute()
      • addCommandInFile

        public void addCommandInFile​(java.lang.String command)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • addCommandInBuffer

        public void addCommandInBuffer​(LineReader reader,
                                       java.lang.String command)
      • replaceParam

        private java.lang.String replaceParam​(java.lang.String command)
      • editCommandsAndClose

        public void editCommandsAndClose​(LineReader reader)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception