test_class.file: agent/jvm/src/test/java/org/jolokia/jvmagent/client/util/OptionsAndArgsTest.java
test_class.identifier: OptionsAndArgsTest
test_case.body: @Test(expectedExceptions = IllegalArgumentException.class,expectedExceptionsMessageRegExp = ".*Invalid pattern.*")
      public void invalidPattern() {
          OptionsAndArgs o = opts("start", "i+*");
          o.getProcessPattern();
      }
test_case.class_method_signature: OptionsAndArgsTest.invalidPattern()
test_case.full_signature: @Test(expectedExceptions = IllegalArgumentException.class,expectedExceptionsMessageRegExp = ".*Invalid pattern.*") public void invalidPattern()
test_case.identifier: invalidPattern
test_case.invocations: opts getProcessPattern
test_case.modifiers: @Test(expectedExceptions = IllegalArgumentException.class,expectedExceptionsMessageRegExp = ".*Invalid pattern.*") public
test_case.parameters: ()
test_case.return: void
test_case.signature: void invalidPattern()
focal_class.declarator: SHORT_OPTS = new HashMap<String, String>()
focal_class.modifier: private static final
focal_class.original_string: private static final Map<String,String> SHORT_OPTS = new HashMap<String, String>();
focal_class.type: Map<String,String>
focal_class.var_name: SHORT_OPTS
focal_class.declarator: OPTIONS = new HashSet<String>(Arrays.asList(
              // JVM Agent options:
              "host", "port", "agentContext", "user", "password",
              "quiet!", "verbose!", "version!", "executor", "threadNamePrefix", "threadNr",
              "backlog", "hide!", "protocol","authMode","authClass",
              "authUrl", "authPrincipalSpec", "authIgnoreCerts!",
              //https options:
              "keystore", "keystorePassword", "useSslClientAuthentication!",
              "secureSocketProtocol", "keyStoreType", "keyManagerAlgorithm", "trustManagerAlgorithm",
              "caCert", "serverCert", "serverKey", "serverKeyAlgorithm", "clientPrincipal", "extractClientCheck",
              "sslProtocol", "sslCipherSuite",
              // Jolokia options:
              "historyMaxEntries", "debug!", "debugMaxEntries",
              "logHandlerClass", "dispatcherClasses", "maxDepth", "maxCollectionSize",
              "maxObjects", "restrictorClass", "policyLocation", "mbeanQualifier",
              "canonicalNaming", "includeStackTrace", "serializeException",
              "discoveryEnabled", "discoveryAgentUrl", "agentId", "agentDescription",
              // Others:
              "config", "help!"))
focal_class.modifier: private static final
focal_class.original_string: private static final Set<String> OPTIONS = new HashSet<String>(Arrays.asList(
              // JVM Agent options:
              "host", "port", "agentContext", "user", "password",
              "quiet!", "verbose!", "version!", "executor", "threadNamePrefix", "threadNr",
              "backlog", "hide!", "protocol","authMode","authClass",
              "authUrl", "authPrincipalSpec", "authIgnoreCerts!",
              //https options:
              "keystore", "keystorePassword", "useSslClientAuthentication!",
              "secureSocketProtocol", "keyStoreType", "keyManagerAlgorithm", "trustManagerAlgorithm",
              "caCert", "serverCert", "serverKey", "serverKeyAlgorithm", "clientPrincipal", "extractClientCheck",
              "sslProtocol", "sslCipherSuite",
              // Jolokia options:
              "historyMaxEntries", "debug!", "debugMaxEntries",
              "logHandlerClass", "dispatcherClasses", "maxDepth", "maxCollectionSize",
              "maxObjects", "restrictorClass", "policyLocation", "mbeanQualifier",
              "canonicalNaming", "includeStackTrace", "serializeException",
              "discoveryEnabled", "discoveryAgentUrl", "agentId", "agentDescription",
              // Others:
              "config", "help!"));
focal_class.type: Set<String>
focal_class.var_name: OPTIONS
focal_class.declarator: LIST_OPTIONS = new HashSet<String>(Arrays.asList(
              "clientPrincipal", "sslProtocol", "sslCipherSuite"))
focal_class.modifier: private static final
focal_class.original_string: private static final Set<String> LIST_OPTIONS = new HashSet<String>(Arrays.asList(
              "clientPrincipal", "sslProtocol", "sslCipherSuite"));
focal_class.type: Set<String>
focal_class.var_name: LIST_OPTIONS
focal_class.declarator: COMMANDS_REQUIRING_PID =
              new HashSet<String>(Arrays.asList("start","stop","toggle","status"))
focal_class.modifier: private static final
focal_class.original_string: private static final Set<String> COMMANDS_REQUIRING_PID =
              new HashSet<String>(Arrays.asList("start","stop","toggle","status"));
focal_class.type: Set<String>
focal_class.var_name: COMMANDS_REQUIRING_PID
focal_class.declarator: command
focal_class.modifier: private
focal_class.original_string: private String command;
focal_class.type: String
focal_class.var_name: command
focal_class.declarator: extraArgs
focal_class.modifier: private
focal_class.original_string: private List<String> extraArgs;
focal_class.type: List<String>
focal_class.var_name: extraArgs
focal_class.declarator: options
focal_class.modifier: private
focal_class.original_string: private Map<String,String> options;
focal_class.type: Map<String,String>
focal_class.var_name: options
focal_class.declarator: quiet
focal_class.modifier: private
focal_class.original_string: private boolean quiet;
focal_class.type: boolean
focal_class.var_name: quiet
focal_class.declarator: verbose
focal_class.modifier: private
focal_class.original_string: private boolean verbose;
focal_class.type: boolean
focal_class.var_name: verbose
focal_class.declarator: jarFile
focal_class.modifier: private
focal_class.original_string: private File jarFile;
focal_class.type: File
focal_class.var_name: jarFile
focal_class.declarator: ARGUMENT_PATTERN_WITH_EQUAL = Pattern.compile("([^=]+)=(.*)")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern ARGUMENT_PATTERN_WITH_EQUAL = Pattern.compile("([^=]+)=(.*)");
focal_class.type: Pattern
focal_class.var_name: ARGUMENT_PATTERN_WITH_EQUAL
focal_class.file: agent/jvm/src/main/java/org/jolokia/jvmagent/client/util/OptionsAndArgs.java
focal_class.identifier: OptionsAndArgs
focal_class.class_method_signature: OptionsAndArgs.OptionsAndArgs(Set<String> pCommands, String ... pArgs)
focal_class.full_signature: public  OptionsAndArgs(Set<String> pCommands, String ... pArgs)
focal_class.identifier: OptionsAndArgs
focal_class.modifiers: public
focal_class.parameters: (Set<String> pCommands, String ... pArgs)
focal_class.signature:  OptionsAndArgs(Set<String> pCommands, String ... pArgs)
focal_class.class_method_signature: OptionsAndArgs.toAgentArg()
focal_class.full_signature: public String toAgentArg()
focal_class.identifier: toAgentArg
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toAgentArg()
focal_class.class_method_signature: OptionsAndArgs.getPid()
focal_class.full_signature: public String getPid()
focal_class.identifier: getPid
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPid()
focal_class.class_method_signature: OptionsAndArgs.getProcessPattern()
focal_class.full_signature: public Pattern getProcessPattern()
focal_class.identifier: getProcessPattern
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Pattern
focal_class.signature: Pattern getProcessPattern()
focal_class.class_method_signature: OptionsAndArgs.getCommand()
focal_class.full_signature: public String getCommand()
focal_class.identifier: getCommand
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCommand()
focal_class.class_method_signature: OptionsAndArgs.getExtraArgs()
focal_class.full_signature: public List<String> getExtraArgs()
focal_class.identifier: getExtraArgs
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getExtraArgs()
focal_class.class_method_signature: OptionsAndArgs.isQuiet()
focal_class.full_signature: public boolean isQuiet()
focal_class.identifier: isQuiet
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isQuiet()
focal_class.class_method_signature: OptionsAndArgs.getPort()
focal_class.full_signature: public String getPort()
focal_class.identifier: getPort
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPort()
focal_class.class_method_signature: OptionsAndArgs.isVerbose()
focal_class.full_signature: public boolean isVerbose()
focal_class.identifier: isVerbose
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isVerbose()
focal_class.class_method_signature: OptionsAndArgs.needsVm()
focal_class.full_signature: public boolean needsVm()
focal_class.identifier: needsVm
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean needsVm()
focal_class.class_method_signature: OptionsAndArgs.getJarFilePath()
focal_class.full_signature: public String getJarFilePath()
focal_class.identifier: getJarFilePath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getJarFilePath()
focal_class.class_method_signature: OptionsAndArgs.getJarFileName()
focal_class.full_signature: public String getJarFileName()
focal_class.identifier: getJarFileName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getJarFileName()
focal_class.class_method_signature: OptionsAndArgs.lookupJarFile()
focal_class.full_signature: public static File lookupJarFile()
focal_class.identifier: lookupJarFile
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: File
focal_class.signature: File lookupJarFile()
focal_class.class_method_signature: OptionsAndArgs.parseArgument(String pArg, String pNextArgument)
focal_class.full_signature: private ArgParsed parseArgument(String pArg, String pNextArgument)
focal_class.identifier: parseArgument
focal_class.modifiers: private
focal_class.parameters: (String pArg, String pNextArgument)
focal_class.return: ArgParsed
focal_class.signature: ArgParsed parseArgument(String pArg, String pNextArgument)
focal_class.class_method_signature: OptionsAndArgs.parseShortOption(String pArg, String pNextArgument)
focal_class.full_signature: private ArgParsed parseShortOption(String pArg, String pNextArgument)
focal_class.identifier: parseShortOption
focal_class.modifiers: private
focal_class.parameters: (String pArg, String pNextArgument)
focal_class.return: ArgParsed
focal_class.signature: ArgParsed parseShortOption(String pArg, String pNextArgument)
focal_class.class_method_signature: OptionsAndArgs.parseLongOption(String pArg, String pNextArgument)
focal_class.full_signature: private ArgParsed parseLongOption(String pArg, String pNextArgument)
focal_class.identifier: parseLongOption
focal_class.modifiers: private
focal_class.parameters: (String pArg, String pNextArgument)
focal_class.return: ArgParsed
focal_class.signature: ArgParsed parseLongOption(String pArg, String pNextArgument)
focal_class.class_method_signature: OptionsAndArgs.getNextListIndexSuffix(Map<String, String> options, String key)
focal_class.full_signature: private String getNextListIndexSuffix(Map<String, String> options, String key)
focal_class.identifier: getNextListIndexSuffix
focal_class.modifiers: private
focal_class.parameters: (Map<String, String> options, String key)
focal_class.return: String
focal_class.signature: String getNextListIndexSuffix(Map<String, String> options, String key)
focal_class.class_method_signature: OptionsAndArgs.verifyOptionWithArgument(String pOpt, String pValue, String pNextArgument)
focal_class.full_signature: private void verifyOptionWithArgument(String pOpt, String pValue, String pNextArgument)
focal_class.identifier: verifyOptionWithArgument
focal_class.modifiers: private
focal_class.parameters: (String pOpt, String pValue, String pNextArgument)
focal_class.return: void
focal_class.signature: void verifyOptionWithArgument(String pOpt, String pValue, String pNextArgument)
focal_class.class_method_signature: OptionsAndArgs.init(Set<String> pCommands, String ... pArgs)
focal_class.full_signature: private void init(Set<String> pCommands, String ... pArgs)
focal_class.identifier: init
focal_class.modifiers: private
focal_class.parameters: (Set<String> pCommands, String ... pArgs)
focal_class.return: void
focal_class.signature: void init(Set<String> pCommands, String ... pArgs)
focal_class.class_method_signature: OptionsAndArgs.verifyCommandAndArgs(String pCommand, List<String> pArgs)
focal_class.full_signature: private void verifyCommandAndArgs(String pCommand, List<String> pArgs)
focal_class.identifier: verifyCommandAndArgs
focal_class.modifiers: private
focal_class.parameters: (String pCommand, List<String> pArgs)
focal_class.return: void
focal_class.signature: void verifyCommandAndArgs(String pCommand, List<String> pArgs)
focal_class.class_method_signature: OptionsAndArgs.checkCommandAndArgs(Set<String> pCommands, String ... pArgs)
focal_class.full_signature: private List<String> checkCommandAndArgs(Set<String> pCommands, String ... pArgs)
focal_class.identifier: checkCommandAndArgs
focal_class.modifiers: private
focal_class.parameters: (Set<String> pCommands, String ... pArgs)
focal_class.return: List<String>
focal_class.signature: List<String> checkCommandAndArgs(Set<String> pCommands, String ... pArgs)
focal_method.body: public Pattern getProcessPattern() {
          String arg = extraArgs.size() > 0 ? extraArgs.get(0) : null;
          try {
              return arg != null && getPid() == null ?
                      Pattern.compile(arg, Pattern.CASE_INSENSITIVE)
                      : null;
          } catch (PatternSyntaxException exp) {
              throw new IllegalArgumentException("Invalid pattern '" + arg + "' for matching process names", exp);
          }
  
      }
focal_method.class_method_signature: OptionsAndArgs.getProcessPattern()
focal_method.full_signature: public Pattern getProcessPattern()
focal_method.identifier: getProcessPattern
focal_method.invocations: size get getPid compile
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Pattern
focal_method.signature: Pattern getProcessPattern()