Class Instrument


  • public class Instrument
    extends Command
    The instrument command.
    • Constructor Summary

      Constructors 
      Constructor Description
      Instrument()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String description()  
      int execute​(java.io.PrintWriter out, java.io.PrintWriter err)
      Executes the given command.
      private int instrument​(java.io.File src, java.io.File dest)  
      private int instrumentRecursive​(java.io.File src, java.io.File dest)  
      • Methods inherited from class java.lang.Object

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

      • dest

        java.io.File dest
      • source

        java.util.List<java.io.File> source
    • Constructor Detail

      • Instrument

        public Instrument()
    • Method Detail

      • description

        public java.lang.String description()
        Specified by:
        description in class Command
        Returns:
        Short description of the command.
      • execute

        public int execute​(java.io.PrintWriter out,
                           java.io.PrintWriter err)
                    throws java.io.IOException
        Description copied from class: Command
        Executes the given command.
        Specified by:
        execute in class Command
        Parameters:
        out - std out
        err - std err
        Returns:
        exit code, should be 0 for normal operation
        Throws:
        java.io.IOException
      • instrumentRecursive

        private int instrumentRecursive​(java.io.File src,
                                        java.io.File dest)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • instrument

        private int instrument​(java.io.File src,
                               java.io.File dest)
                        throws java.io.IOException
        Throws:
        java.io.IOException