Class CommandLine

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CommandLine.Type
      The type of description that should be displayed.
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandLine​(java.lang.String line, java.lang.String head, java.lang.String tail, java.util.List<java.lang.String> args, CommandLine.Type type)
      Creates a new command line.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> args()
      Returns the parsed arguments.
      java.lang.String head()
      Returns the part before the cursor.
      java.lang.String line()
      Returns the original command line.
      java.lang.String tail()
      Returns the part after the cursor.
      CommandLine.Type type()
      Returns the description type.
      • Methods inherited from class java.lang.Object

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

      • CommandLine

        public CommandLine​(java.lang.String line,
                           java.lang.String head,
                           java.lang.String tail,
                           java.util.List<java.lang.String> args,
                           CommandLine.Type type)
        Creates a new command line.
        Parameters:
        line - the original command line
        head - the part before the cursor
        tail - the part after the cursor
        args - the parsed arguments
        type - the description type
    • Method Detail

      • line

        public java.lang.String line()
        Returns the original command line.
        Returns:
        the line
      • head

        public java.lang.String head()
        Returns the part before the cursor.
        Returns:
        the head
      • tail

        public java.lang.String tail()
        Returns the part after the cursor.
        Returns:
        the tail
      • args

        public java.util.List<java.lang.String> args()
        Returns the parsed arguments.
        Returns:
        the arguments
      • type

        public CommandLine.Type type()
        Returns the description type.
        Returns:
        the type