Class EditorInputLine

    • Constructor Detail

      • EditorInputLine

        public EditorInputLine​(String rawLine)
        Basic constructor that turns a raw input line (such as types in by a user) to one of these.
        Parameters:
        rawLine -
      • EditorInputLine

        public EditorInputLine​(Vector v)
    • Method Detail

      • isCommand

        public boolean isCommand​(String... x)
        Checks that one of the commands applies. This allows for things like short and long form commands to be checked with as single call, e.g.
             isCommand("r","read");
         
        It also handles missing commands.
        Parameters:
        x -
        Returns: