Interface SyntaxMetrics

All Superinterfaces:
ArgumentPrefixAccessor, ArgumentSuffixAccessor, LongOptionPrefixAccessor, ShortOptionPrefixAccessor
All Known Implementing Classes:
SyntaxMetricsImpl, SyntaxNotation

The SyntaxMetrics provides properties specific to a specific command line syntax notation.
  • Method Details

    • getAllSymbol

      String getAllSymbol()
      Retrieves the symbol for representing an ALL condition.
      Returns:
      The according ALL symbol.
    • getEmptySymbol

      String getEmptySymbol()
      Retrieves the symbol for representing an EMPTY condition (no args).
      Returns:
      The according EMPTY symbol.
    • getBeginArraySymbol

      String getBeginArraySymbol()
      Retrieves the symbol representing the beginning of an array, e.g. an opening square brace.
      Returns:
      The symbol representing the beginning of an array.
    • getBeginListSymbol

      String getBeginListSymbol()
      Retrieves the symbol representing the beginning of a list, e.g. an opening brace.
      Returns:
      The symbol representing the beginning of a list.
    • getBeginRangeSymbol

      String getBeginRangeSymbol()
      Retrieves the symbol representing the beginning of a range, e.g. an opening curly brace.
      Returns:
      The symbol representing the beginning of a range.
    • getEndArraySymbol

      String getEndArraySymbol()
      Retrieves the symbol representing the end of an array, e.g. a closing square brace.
      Returns:
      The symbol representing the end of an array.
    • getEndListSymbol

      String getEndListSymbol()
      Retrieves the symbol representing the end of a list, e.g. a closing brace.
      Returns:
      The symbol representing the end of a list.
    • getEndRangeSymbol

      String getEndRangeSymbol()
      Retrieves the symbol representing the end of a range, e.g. a closing curly brace.
      Returns:
      The symbol representing the end of a range.
    • getIntervalSymbol

      String getIntervalSymbol()
      Retrieves the symbol representing an interval, e.g. "..." or "-".
      Returns:
      The symbol representing an interval.
    • getBeginOptionalSymbol

      String getBeginOptionalSymbol()
      Retrieves the symbol representing the beginning of optional elements, e.g. an opening square brace.
      Returns:
      The symbol representing the beginning of optional elements.
    • getEndOptionalSymbol

      String getEndOptionalSymbol()
      Retrieves the symbol representing the end of optional elements, e.g. a closing square brace.
      Returns:
      The symbol representing the end of a optional elements.
    • getAnySymbol

      String getAnySymbol()
      Retrieves the symbol for representing an OPTIONAL condition.
      Returns:
      The according OPTIONAL symbol.
    • getOrSymbol

      String getOrSymbol()
      Retrieves the symbol for representing an OR condition.
      Returns:
      The according OR symbol.
    • getXorSymbol

      String getXorSymbol()
      Retrieves the symbol for representing an XOR condition.
      Returns:
      The according XOR symbol.
    • getAndSymbol

      String getAndSymbol()
      Retrieves the symbol for representing an AND condition.
      Returns:
      The according AND symbol.
    • toOptionPrefixes

      default String[] toOptionPrefixes()
      Returns an array of the prefixes configured by this SyntaxMetrics instance, omitting any null or empty prefixes as well as any duplicates.
      Returns:
      The array containing the configured options' prefixes.