Class Commandline.Argument

  • All Implemented Interfaces:
    Arg
    Enclosing class:
    Commandline

    public static class Commandline.Argument
    extends java.lang.Object
    implements Arg
    A single command line argument
    • Constructor Summary

      Constructors 
      Constructor Description
      Argument()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isMask()  
      void setFile​(java.io.File value)
      void setLine​(java.lang.String line)
      void setMask​(boolean mask)
      Whether to hide the argument value when a command line prints the arguments.
      void setValue​(java.lang.String value)
      • Methods inherited from class java.lang.Object

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

      • Argument

        public Argument()
    • Method Detail

      • setValue

        public void setValue​(java.lang.String value)
        Specified by:
        setValue in interface Arg
        Parameters:
        value - the value to be set
      • setFile

        public void setFile​(java.io.File value)
        Specified by:
        setFile in interface Arg
        Parameters:
        value - the file to be set
      • setMask

        public void setMask​(boolean mask)
        Whether to hide the argument value when a command line prints the arguments.
        Specified by:
        setMask in interface Arg
        Parameters:
        mask - new state of the mask property
      • isMask

        public boolean isMask()
        Returns:
        true/false