Class AbstractCommand<C extends IO>

    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractCommand()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer call()  
      protected abstract int execute()  
      java.io.PrintWriter getErr()  
      java.io.PrintWriter getOut()  
      protected abstract C parent()  
      protected void printDetails​(java.lang.Throwable throwable, java.lang.String message, ErrorColorizer colorizer)  
      void setErr​(java.io.PrintWriter err)  
      void setOut​(java.io.PrintWriter out)  
      protected void setup()  
      • Methods inherited from class java.lang.Object

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

      • AbstractCommand

        public AbstractCommand()
    • Method Detail

      • parent

        protected abstract C parent()
      • getOut

        public java.io.PrintWriter getOut()
        Specified by:
        getOut in interface IO
      • setOut

        public void setOut​(java.io.PrintWriter out)
        Specified by:
        setOut in interface IO
      • getErr

        public java.io.PrintWriter getErr()
        Specified by:
        getErr in interface IO
      • setErr

        public void setErr​(java.io.PrintWriter err)
        Specified by:
        setErr in interface IO
      • call

        public java.lang.Integer call()
        Specified by:
        call in interface java.util.concurrent.Callable<C extends IO>
      • printDetails

        protected void printDetails​(java.lang.Throwable throwable,
                                    java.lang.String message,
                                    ErrorColorizer colorizer)
      • setup

        protected void setup()
      • execute

        protected abstract int execute()