Package jline

Class ArgumentCompletor.AbstractArgumentDelimiter

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      ArgumentCompletor.ArgumentList delimit​(java.lang.String buffer, int cursor)
      Break the specified buffer into individual tokens that can be completed on their own.
      char[] getEscapeChars()  
      char[] getQuoteChars()  
      boolean isDelimiter​(java.lang.String buffer, int pos)
      Returns true if the specified character is a whitespace parameter.
      abstract boolean isDelimiterChar​(java.lang.String buffer, int pos)
      Returns true if the character at the specified position if a delimiter.
      boolean isEscaped​(java.lang.String buffer, int pos)  
      boolean isQuoted​(java.lang.String buffer, int pos)  
      void setEscapeChars​(char[] escapeChars)  
      void setQuoteChars​(char[] quoteChars)  
      • Methods inherited from class java.lang.Object

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

      • AbstractArgumentDelimiter

        public AbstractArgumentDelimiter()
    • Method Detail

      • setQuoteChars

        public void setQuoteChars​(char[] quoteChars)
      • getQuoteChars

        public char[] getQuoteChars()
      • setEscapeChars

        public void setEscapeChars​(char[] escapeChars)
      • getEscapeChars

        public char[] getEscapeChars()
      • isQuoted

        public boolean isQuoted​(java.lang.String buffer,
                                int pos)
      • isEscaped

        public boolean isEscaped​(java.lang.String buffer,
                                 int pos)
      • isDelimiterChar

        public abstract boolean isDelimiterChar​(java.lang.String buffer,
                                                int pos)
        Returns true if the character at the specified position if a delimiter. This method will only be called if the character is not enclosed in any of the getQuoteChars(), and is not escaped by ant of the getEscapeChars(). To perform escaping manually, override isDelimiter(java.lang.String, int) instead.