test_class.file: dubbo-common/src/test/java/org/apache/dubbo/common/URLBuilderTest.java
test_class.identifier: URLBuilderTest
test_case.body: @Test
      public void testNoArgConstructor() {
          URL url = new URLBuilder().build();
          assertThat(url.toString(), equalTo(""));
      }
test_case.class_method_signature: URLBuilderTest.testNoArgConstructor()
test_case.full_signature: @Test public void testNoArgConstructor()
test_case.identifier: testNoArgConstructor
test_case.invocations: build assertThat toString equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNoArgConstructor()
focal_class.declarator: protocol
focal_class.modifier: private
focal_class.original_string: private String protocol;
focal_class.type: String
focal_class.var_name: protocol
focal_class.declarator: username
focal_class.modifier: private
focal_class.original_string: private String username;
focal_class.type: String
focal_class.var_name: username
focal_class.declarator: password
focal_class.modifier: private
focal_class.original_string: private String password;
focal_class.type: String
focal_class.var_name: password
focal_class.declarator: host
focal_class.modifier: private
focal_class.original_string: private String host;
focal_class.type: String
focal_class.var_name: host
focal_class.declarator: port
focal_class.modifier: private
focal_class.original_string: private int port;
focal_class.type: int
focal_class.var_name: port
focal_class.declarator: path
focal_class.modifier: private
focal_class.original_string: private String path;
focal_class.type: String
focal_class.var_name: path
focal_class.declarator: parameters
focal_class.modifier: private
focal_class.original_string: private Map<String, String> parameters;
focal_class.type: Map<String, String>
focal_class.var_name: parameters
focal_class.declarator: methodParameters
focal_class.modifier: private
focal_class.original_string: private Map<String, Map<String, String>> methodParameters;
focal_class.type: Map<String, Map<String, String>>
focal_class.var_name: methodParameters
focal_class.file: dubbo-common/src/main/java/org/apache/dubbo/common/URLBuilder.java
focal_class.identifier: URLBuilder
focal_class.class_method_signature: URLBuilder.URLBuilder()
focal_class.full_signature: public  URLBuilder()
focal_class.identifier: URLBuilder
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  URLBuilder()
focal_class.class_method_signature: URLBuilder.URLBuilder(String protocol, String host, int port)
focal_class.full_signature: public  URLBuilder(String protocol, String host, int port)
focal_class.identifier: URLBuilder
focal_class.modifiers: public
focal_class.parameters: (String protocol, String host, int port)
focal_class.signature:  URLBuilder(String protocol, String host, int port)
focal_class.class_method_signature: URLBuilder.URLBuilder(String protocol, String host, int port, String[] pairs)
focal_class.full_signature: public  URLBuilder(String protocol, String host, int port, String[] pairs)
focal_class.identifier: URLBuilder
focal_class.modifiers: public
focal_class.parameters: (String protocol, String host, int port, String[] pairs)
focal_class.signature:  URLBuilder(String protocol, String host, int port, String[] pairs)
focal_class.class_method_signature: URLBuilder.URLBuilder(String protocol, String host, int port, Map<String, String> parameters)
focal_class.full_signature: public  URLBuilder(String protocol, String host, int port, Map<String, String> parameters)
focal_class.identifier: URLBuilder
focal_class.modifiers: public
focal_class.parameters: (String protocol, String host, int port, Map<String, String> parameters)
focal_class.signature:  URLBuilder(String protocol, String host, int port, Map<String, String> parameters)
focal_class.class_method_signature: URLBuilder.URLBuilder(String protocol, String host, int port, String path)
focal_class.full_signature: public  URLBuilder(String protocol, String host, int port, String path)
focal_class.identifier: URLBuilder
focal_class.modifiers: public
focal_class.parameters: (String protocol, String host, int port, String path)
focal_class.signature:  URLBuilder(String protocol, String host, int port, String path)
focal_class.class_method_signature: URLBuilder.URLBuilder(String protocol, String host, int port, String path, String... pairs)
focal_class.full_signature: public  URLBuilder(String protocol, String host, int port, String path, String... pairs)
focal_class.identifier: URLBuilder
focal_class.modifiers: public
focal_class.parameters: (String protocol, String host, int port, String path, String... pairs)
focal_class.signature:  URLBuilder(String protocol, String host, int port, String path, String... pairs)
focal_class.class_method_signature: URLBuilder.URLBuilder(String protocol, String host, int port, String path, Map<String, String> parameters)
focal_class.full_signature: public  URLBuilder(String protocol, String host, int port, String path, Map<String, String> parameters)
focal_class.identifier: URLBuilder
focal_class.modifiers: public
focal_class.parameters: (String protocol, String host, int port, String path, Map<String, String> parameters)
focal_class.signature:  URLBuilder(String protocol, String host, int port, String path, Map<String, String> parameters)
focal_class.class_method_signature: URLBuilder.URLBuilder(String protocol,
                        String username,
                        String password,
                        String host,
                        int port,
                        String path, Map<String, String> parameters)
focal_class.full_signature: public  URLBuilder(String protocol,
                        String username,
                        String password,
                        String host,
                        int port,
                        String path, Map<String, String> parameters)
focal_class.identifier: URLBuilder
focal_class.modifiers: public
focal_class.parameters: (String protocol,
                        String username,
                        String password,
                        String host,
                        int port,
                        String path, Map<String, String> parameters)
focal_class.signature:  URLBuilder(String protocol,
                        String username,
                        String password,
                        String host,
                        int port,
                        String path, Map<String, String> parameters)
focal_class.class_method_signature: URLBuilder.URLBuilder(String protocol,
                        String username,
                        String password,
                        String host,
                        int port,
                        String path, Map<String, String> parameters,
                        Map<String, Map<String, String>> methodParameters)
focal_class.full_signature: public  URLBuilder(String protocol,
                        String username,
                        String password,
                        String host,
                        int port,
                        String path, Map<String, String> parameters,
                        Map<String, Map<String, String>> methodParameters)
focal_class.identifier: URLBuilder
focal_class.modifiers: public
focal_class.parameters: (String protocol,
                        String username,
                        String password,
                        String host,
                        int port,
                        String path, Map<String, String> parameters,
                        Map<String, Map<String, String>> methodParameters)
focal_class.signature:  URLBuilder(String protocol,
                        String username,
                        String password,
                        String host,
                        int port,
                        String path, Map<String, String> parameters,
                        Map<String, Map<String, String>> methodParameters)
focal_class.class_method_signature: URLBuilder.from(URL url)
focal_class.full_signature: public static URLBuilder from(URL url)
focal_class.identifier: from
focal_class.modifiers: public static
focal_class.parameters: (URL url)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder from(URL url)
focal_class.class_method_signature: URLBuilder.build()
focal_class.full_signature: public URL build()
focal_class.identifier: build
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: URL
focal_class.signature: URL build()
focal_class.class_method_signature: URLBuilder.setProtocol(String protocol)
focal_class.full_signature: public URLBuilder setProtocol(String protocol)
focal_class.identifier: setProtocol
focal_class.modifiers: public
focal_class.parameters: (String protocol)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder setProtocol(String protocol)
focal_class.class_method_signature: URLBuilder.setUsername(String username)
focal_class.full_signature: public URLBuilder setUsername(String username)
focal_class.identifier: setUsername
focal_class.modifiers: public
focal_class.parameters: (String username)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder setUsername(String username)
focal_class.class_method_signature: URLBuilder.setPassword(String password)
focal_class.full_signature: public URLBuilder setPassword(String password)
focal_class.identifier: setPassword
focal_class.modifiers: public
focal_class.parameters: (String password)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder setPassword(String password)
focal_class.class_method_signature: URLBuilder.setHost(String host)
focal_class.full_signature: public URLBuilder setHost(String host)
focal_class.identifier: setHost
focal_class.modifiers: public
focal_class.parameters: (String host)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder setHost(String host)
focal_class.class_method_signature: URLBuilder.setPort(int port)
focal_class.full_signature: public URLBuilder setPort(int port)
focal_class.identifier: setPort
focal_class.modifiers: public
focal_class.parameters: (int port)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder setPort(int port)
focal_class.class_method_signature: URLBuilder.setAddress(String address)
focal_class.full_signature: public URLBuilder setAddress(String address)
focal_class.identifier: setAddress
focal_class.modifiers: public
focal_class.parameters: (String address)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder setAddress(String address)
focal_class.class_method_signature: URLBuilder.setPath(String path)
focal_class.full_signature: public URLBuilder setPath(String path)
focal_class.identifier: setPath
focal_class.modifiers: public
focal_class.parameters: (String path)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder setPath(String path)
focal_class.class_method_signature: URLBuilder.addParameterAndEncoded(String key, String value)
focal_class.full_signature: public URLBuilder addParameterAndEncoded(String key, String value)
focal_class.identifier: addParameterAndEncoded
focal_class.modifiers: public
focal_class.parameters: (String key, String value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameterAndEncoded(String key, String value)
focal_class.class_method_signature: URLBuilder.addParameter(String key, boolean value)
focal_class.full_signature: public URLBuilder addParameter(String key, boolean value)
focal_class.identifier: addParameter
focal_class.modifiers: public
focal_class.parameters: (String key, boolean value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameter(String key, boolean value)
focal_class.class_method_signature: URLBuilder.addParameter(String key, char value)
focal_class.full_signature: public URLBuilder addParameter(String key, char value)
focal_class.identifier: addParameter
focal_class.modifiers: public
focal_class.parameters: (String key, char value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameter(String key, char value)
focal_class.class_method_signature: URLBuilder.addParameter(String key, byte value)
focal_class.full_signature: public URLBuilder addParameter(String key, byte value)
focal_class.identifier: addParameter
focal_class.modifiers: public
focal_class.parameters: (String key, byte value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameter(String key, byte value)
focal_class.class_method_signature: URLBuilder.addParameter(String key, short value)
focal_class.full_signature: public URLBuilder addParameter(String key, short value)
focal_class.identifier: addParameter
focal_class.modifiers: public
focal_class.parameters: (String key, short value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameter(String key, short value)
focal_class.class_method_signature: URLBuilder.addParameter(String key, int value)
focal_class.full_signature: public URLBuilder addParameter(String key, int value)
focal_class.identifier: addParameter
focal_class.modifiers: public
focal_class.parameters: (String key, int value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameter(String key, int value)
focal_class.class_method_signature: URLBuilder.addParameter(String key, long value)
focal_class.full_signature: public URLBuilder addParameter(String key, long value)
focal_class.identifier: addParameter
focal_class.modifiers: public
focal_class.parameters: (String key, long value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameter(String key, long value)
focal_class.class_method_signature: URLBuilder.addParameter(String key, float value)
focal_class.full_signature: public URLBuilder addParameter(String key, float value)
focal_class.identifier: addParameter
focal_class.modifiers: public
focal_class.parameters: (String key, float value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameter(String key, float value)
focal_class.class_method_signature: URLBuilder.addParameter(String key, double value)
focal_class.full_signature: public URLBuilder addParameter(String key, double value)
focal_class.identifier: addParameter
focal_class.modifiers: public
focal_class.parameters: (String key, double value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameter(String key, double value)
focal_class.class_method_signature: URLBuilder.addParameter(String key, Enum<?> value)
focal_class.full_signature: public URLBuilder addParameter(String key, Enum<?> value)
focal_class.identifier: addParameter
focal_class.modifiers: public
focal_class.parameters: (String key, Enum<?> value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameter(String key, Enum<?> value)
focal_class.class_method_signature: URLBuilder.addParameter(String key, Number value)
focal_class.full_signature: public URLBuilder addParameter(String key, Number value)
focal_class.identifier: addParameter
focal_class.modifiers: public
focal_class.parameters: (String key, Number value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameter(String key, Number value)
focal_class.class_method_signature: URLBuilder.addParameter(String key, CharSequence value)
focal_class.full_signature: public URLBuilder addParameter(String key, CharSequence value)
focal_class.identifier: addParameter
focal_class.modifiers: public
focal_class.parameters: (String key, CharSequence value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameter(String key, CharSequence value)
focal_class.class_method_signature: URLBuilder.addParameter(String key, String value)
focal_class.full_signature: public URLBuilder addParameter(String key, String value)
focal_class.identifier: addParameter
focal_class.modifiers: public
focal_class.parameters: (String key, String value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameter(String key, String value)
focal_class.class_method_signature: URLBuilder.addMethodParameter(String method, String key, String value)
focal_class.full_signature: public URLBuilder addMethodParameter(String method, String key, String value)
focal_class.identifier: addMethodParameter
focal_class.modifiers: public
focal_class.parameters: (String method, String key, String value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addMethodParameter(String method, String key, String value)
focal_class.class_method_signature: URLBuilder.addParameterIfAbsent(String key, String value)
focal_class.full_signature: public URLBuilder addParameterIfAbsent(String key, String value)
focal_class.identifier: addParameterIfAbsent
focal_class.modifiers: public
focal_class.parameters: (String key, String value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameterIfAbsent(String key, String value)
focal_class.class_method_signature: URLBuilder.addMethodParameterIfAbsent(String method, String key, String value)
focal_class.full_signature: public URLBuilder addMethodParameterIfAbsent(String method, String key, String value)
focal_class.identifier: addMethodParameterIfAbsent
focal_class.modifiers: public
focal_class.parameters: (String method, String key, String value)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addMethodParameterIfAbsent(String method, String key, String value)
focal_class.class_method_signature: URLBuilder.addParameters(Map<String, String> parameters)
focal_class.full_signature: public URLBuilder addParameters(Map<String, String> parameters)
focal_class.identifier: addParameters
focal_class.modifiers: public
focal_class.parameters: (Map<String, String> parameters)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameters(Map<String, String> parameters)
focal_class.class_method_signature: URLBuilder.addMethodParameters(Map<String, Map<String, String>> methodParameters)
focal_class.full_signature: public URLBuilder addMethodParameters(Map<String, Map<String, String>> methodParameters)
focal_class.identifier: addMethodParameters
focal_class.modifiers: public
focal_class.parameters: (Map<String, Map<String, String>> methodParameters)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addMethodParameters(Map<String, Map<String, String>> methodParameters)
focal_class.class_method_signature: URLBuilder.addParametersIfAbsent(Map<String, String> parameters)
focal_class.full_signature: public URLBuilder addParametersIfAbsent(Map<String, String> parameters)
focal_class.identifier: addParametersIfAbsent
focal_class.modifiers: public
focal_class.parameters: (Map<String, String> parameters)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParametersIfAbsent(Map<String, String> parameters)
focal_class.class_method_signature: URLBuilder.addParameters(String... pairs)
focal_class.full_signature: public URLBuilder addParameters(String... pairs)
focal_class.identifier: addParameters
focal_class.modifiers: public
focal_class.parameters: (String... pairs)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameters(String... pairs)
focal_class.class_method_signature: URLBuilder.addParameterString(String query)
focal_class.full_signature: public URLBuilder addParameterString(String query)
focal_class.identifier: addParameterString
focal_class.modifiers: public
focal_class.parameters: (String query)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder addParameterString(String query)
focal_class.class_method_signature: URLBuilder.removeParameter(String key)
focal_class.full_signature: public URLBuilder removeParameter(String key)
focal_class.identifier: removeParameter
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder removeParameter(String key)
focal_class.class_method_signature: URLBuilder.removeParameters(Collection<String> keys)
focal_class.full_signature: public URLBuilder removeParameters(Collection<String> keys)
focal_class.identifier: removeParameters
focal_class.modifiers: public
focal_class.parameters: (Collection<String> keys)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder removeParameters(Collection<String> keys)
focal_class.class_method_signature: URLBuilder.removeParameters(String... keys)
focal_class.full_signature: public URLBuilder removeParameters(String... keys)
focal_class.identifier: removeParameters
focal_class.modifiers: public
focal_class.parameters: (String... keys)
focal_class.return: URLBuilder
focal_class.signature: URLBuilder removeParameters(String... keys)
focal_class.class_method_signature: URLBuilder.clearParameters()
focal_class.full_signature: public URLBuilder clearParameters()
focal_class.identifier: clearParameters
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: URLBuilder
focal_class.signature: URLBuilder clearParameters()
focal_class.class_method_signature: URLBuilder.hasParameter(String key)
focal_class.full_signature: public boolean hasParameter(String key)
focal_class.identifier: hasParameter
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: boolean
focal_class.signature: boolean hasParameter(String key)
focal_class.class_method_signature: URLBuilder.hasMethodParameter(String method, String key)
focal_class.full_signature: public boolean hasMethodParameter(String method, String key)
focal_class.identifier: hasMethodParameter
focal_class.modifiers: public
focal_class.parameters: (String method, String key)
focal_class.return: boolean
focal_class.signature: boolean hasMethodParameter(String method, String key)
focal_class.class_method_signature: URLBuilder.getParameter(String key)
focal_class.full_signature: public String getParameter(String key)
focal_class.identifier: getParameter
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: String
focal_class.signature: String getParameter(String key)
focal_class.class_method_signature: URLBuilder.getMethodParameter(String method, String key)
focal_class.full_signature: public String getMethodParameter(String method, String key)
focal_class.identifier: getMethodParameter
focal_class.modifiers: public
focal_class.parameters: (String method, String key)
focal_class.return: String
focal_class.signature: String getMethodParameter(String method, String key)
focal_method.body: public URL build() {
          port = port < 0 ? 0 : port;
          // trim the leading "/"
          int firstNonSlash = 0;
          if (path != null) {
              while (firstNonSlash < path.length() && path.charAt(firstNonSlash) == '/') {
                  firstNonSlash++;
              }
              if (firstNonSlash >= path.length()) {
                  path = "";
              } else if (firstNonSlash > 0) {
                  path = path.substring(firstNonSlash);
              }
          }
          if (CollectionUtils.isEmptyMap(methodParameters)) {
              return new URL(protocol, username, password, host, port, path, parameters);
          } else {
              return new URL(protocol, username, password, host, port, path, parameters, methodParameters);
          }
      }
focal_method.class_method_signature: URLBuilder.build()
focal_method.full_signature: public URL build()
focal_method.identifier: build
focal_method.invocations: length charAt length substring isEmptyMap
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: URL
focal_method.signature: URL build()