test_class.declarator: parameters = Arrays.asList(1, 2, 1, 5)
test_class.modifier: private final
test_class.original_string: private final List<Object> parameters = Arrays.asList(1, 2, 1, 5);
test_class.type: List<Object>
test_class.var_name: parameters
test_class.declarator: parameterBuilder
test_class.modifier: private
test_class.original_string: private StandardParameterBuilder parameterBuilder;
test_class.type: StandardParameterBuilder
test_class.var_name: parameterBuilder
test_class.file: shardingsphere-infra/shardingsphere-infra-rewrite/shardingsphere-infra-rewrite-engine/src/test/java/org/apache/shardingsphere/infra/rewrite/parameter/builder/impl/StandardParameterBuilderTest.java
test_class.identifier: StandardParameterBuilderTest
test_case.body: @Test
      public void assertGetParameters() {
          assertThat(parameterBuilder.getParameters(), is(Arrays.<Object>asList(1, 1, 5, 7)));
      }
test_case.class_method_signature: StandardParameterBuilderTest.assertGetParameters()
test_case.full_signature: @Test public void assertGetParameters()
test_case.identifier: assertGetParameters
test_case.invocations: assertThat getParameters is asList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetParameters()
focal_class.declarator: originalParameters
focal_class.modifier: private final
focal_class.original_string: private final List<Object> originalParameters;
focal_class.type: List<Object>
focal_class.var_name: originalParameters
focal_class.declarator: addedIndexAndParameters = new TreeMap<>()
focal_class.modifier: @Getter
      private final
focal_class.original_string: @Getter
      private final Map<Integer, Collection<Object>> addedIndexAndParameters = new TreeMap<>();
focal_class.type: Map<Integer, Collection<Object>>
focal_class.var_name: addedIndexAndParameters
focal_class.declarator: replacedIndexAndParameters = new LinkedHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<Integer, Object> replacedIndexAndParameters = new LinkedHashMap<>();
focal_class.type: Map<Integer, Object>
focal_class.var_name: replacedIndexAndParameters
focal_class.declarator: removeIndexAndParameters = new ArrayList<>()
focal_class.modifier: private final
focal_class.original_string: private final List<Integer> removeIndexAndParameters = new ArrayList<>();
focal_class.type: List<Integer>
focal_class.var_name: removeIndexAndParameters
focal_class.file: shardingsphere-infra/shardingsphere-infra-rewrite/shardingsphere-infra-rewrite-engine/src/main/java/org/apache/shardingsphere/infra/rewrite/parameter/builder/impl/StandardParameterBuilder.java
focal_class.identifier: StandardParameterBuilder
focal_class.interfaces: implements ParameterBuilder
focal_class.class_method_signature: StandardParameterBuilder.addAddedParameters(final int index, final Collection<Object> parameters)
focal_class.full_signature: public void addAddedParameters(final int index, final Collection<Object> parameters)
focal_class.identifier: addAddedParameters
focal_class.modifiers: public
focal_class.parameters: (final int index, final Collection<Object> parameters)
focal_class.return: void
focal_class.signature: void addAddedParameters(final int index, final Collection<Object> parameters)
focal_class.class_method_signature: StandardParameterBuilder.addReplacedParameters(final int index, final Object parameter)
focal_class.full_signature: public void addReplacedParameters(final int index, final Object parameter)
focal_class.identifier: addReplacedParameters
focal_class.modifiers: public
focal_class.parameters: (final int index, final Object parameter)
focal_class.return: void
focal_class.signature: void addReplacedParameters(final int index, final Object parameter)
focal_class.class_method_signature: StandardParameterBuilder.addRemovedParameters(final int index)
focal_class.full_signature: public void addRemovedParameters(final int index)
focal_class.identifier: addRemovedParameters
focal_class.modifiers: public
focal_class.parameters: (final int index)
focal_class.return: void
focal_class.signature: void addRemovedParameters(final int index)
focal_class.class_method_signature: StandardParameterBuilder.getParameters()
focal_class.full_signature: @Override public List<Object> getParameters()
focal_class.identifier: getParameters
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<Object>
focal_class.signature: List<Object> getParameters()
focal_method.body: @Override
      public List<Object> getParameters() {
          List<Object> result = new LinkedList<>(originalParameters);
          for (Entry<Integer, Object> entry : replacedIndexAndParameters.entrySet()) {
              result.set(entry.getKey(), entry.getValue());
          }
          for (Entry<Integer, Collection<Object>> entry : ((TreeMap<Integer, Collection<Object>>) addedIndexAndParameters).descendingMap().entrySet()) {
              if (entry.getKey() > result.size()) {
                  result.addAll(entry.getValue());
              } else {
                  result.addAll(entry.getKey(), entry.getValue());
              }
          }
          for (int index : removeIndexAndParameters) {
              result.remove(index);
          }
          return result;
      }
focal_method.class_method_signature: StandardParameterBuilder.getParameters()
focal_method.full_signature: @Override public List<Object> getParameters()
focal_method.identifier: getParameters
focal_method.invocations: entrySet set getKey getValue entrySet descendingMap getKey size addAll getValue addAll getKey getValue remove
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: List<Object>
focal_method.signature: List<Object> getParameters()