Class AgentArguments


  • public class AgentArguments
    extends Object
    Self-contained scanner for an agent argument string.

    The agent arguments are a comma-separated sequence of [keyword=]quoted-or-unquoted-string. The "keyword=" part is optional. A given keyword can appear multiple times, so after analysis each keyword can map to potentially multiple values (as a List).

    This class organizes the agent arguments into named and anonymous values.

    • Constructor Detail

      • AgentArguments

        public AgentArguments()
    • Method Detail

      • namedValues

        public List<String> namedValues​(String keyword)
        Returns the list of values associated with the specified keyword.
        Parameters:
        keyword - the keyword whose values are needed
        Returns:
        the values associated with the keyword; null if the keyword never appeared in the input
      • unnamedValues

        public List<String> unnamedValues()
        Returns the unnamed values as a list of strings.
        Returns:
        List of Strings, one for each unnamed value in the scanned string