test_class.file: agent/core/src/test/java/org/jolokia/converter/json/ListExtractorTest.java
test_class.identifier: ListExtractorTest
test_class.superclass: extends AbstractExtractorTest
test_case.body: @Test(expectedExceptions = IndexOutOfBoundsException.class)
      public void testSetValueIndexOutOfBounds() throws Exception {
          List list = Arrays.asList("null", "bla");
          extractor.setObjectValue(stringToObjectConverter, list, "3", "blub");
      }
test_case.class_method_signature: ListExtractorTest.testSetValueIndexOutOfBounds()
test_case.full_signature: @Test(expectedExceptions = IndexOutOfBoundsException.class) public void testSetValueIndexOutOfBounds()
test_case.identifier: testSetValueIndexOutOfBounds
test_case.invocations: asList setObjectValue
test_case.modifiers: @Test(expectedExceptions = IndexOutOfBoundsException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSetValueIndexOutOfBounds()
focal_class.file: agent/core/src/main/java/org/jolokia/converter/json/ListExtractor.java
focal_class.identifier: ListExtractor
focal_class.interfaces: implements Extractor
focal_class.class_method_signature: ListExtractor.getType()
focal_class.full_signature: public Class getType()
focal_class.identifier: getType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Class
focal_class.signature: Class getType()
focal_class.class_method_signature: ListExtractor.extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts,boolean jsonify)
focal_class.full_signature: public Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts,boolean jsonify)
focal_class.identifier: extractObject
focal_class.modifiers: public
focal_class.parameters: (ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts,boolean jsonify)
focal_class.return: Object
focal_class.signature: Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts,boolean jsonify)
focal_class.class_method_signature: ListExtractor.setObjectValue(StringToObjectConverter pConverter, Object pInner, String pIndex, Object  pValue)
focal_class.full_signature: public Object setObjectValue(StringToObjectConverter pConverter, Object pInner, String pIndex, Object  pValue)
focal_class.identifier: setObjectValue
focal_class.modifiers: public
focal_class.parameters: (StringToObjectConverter pConverter, Object pInner, String pIndex, Object  pValue)
focal_class.return: Object
focal_class.signature: Object setObjectValue(StringToObjectConverter pConverter, Object pInner, String pIndex, Object  pValue)
focal_class.class_method_signature: ListExtractor.canSetValue()
focal_class.full_signature: public boolean canSetValue()
focal_class.identifier: canSetValue
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean canSetValue()
focal_class.class_method_signature: ListExtractor.extractWithPath(ObjectToJsonConverter pConverter, List pList, Stack<String> pStack, boolean jsonify, String pPathPart)
focal_class.full_signature: private Object extractWithPath(ObjectToJsonConverter pConverter, List pList, Stack<String> pStack, boolean jsonify, String pPathPart)
focal_class.identifier: extractWithPath
focal_class.modifiers: private
focal_class.parameters: (ObjectToJsonConverter pConverter, List pList, Stack<String> pStack, boolean jsonify, String pPathPart)
focal_class.return: Object
focal_class.signature: Object extractWithPath(ObjectToJsonConverter pConverter, List pList, Stack<String> pStack, boolean jsonify, String pPathPart)
focal_class.class_method_signature: ListExtractor.extractListAsJson(ObjectToJsonConverter pConverter, List pList, Stack<String> pPath, int pLength)
focal_class.full_signature: private Object extractListAsJson(ObjectToJsonConverter pConverter, List pList, Stack<String> pPath, int pLength)
focal_class.identifier: extractListAsJson
focal_class.modifiers: private
focal_class.parameters: (ObjectToJsonConverter pConverter, List pList, Stack<String> pPath, int pLength)
focal_class.return: Object
focal_class.signature: Object extractListAsJson(ObjectToJsonConverter pConverter, List pList, Stack<String> pPath, int pLength)
focal_method.body: public Object setObjectValue(StringToObjectConverter pConverter, Object pInner, String pIndex, Object  pValue)
              throws IllegalAccessException, InvocationTargetException {
          List list = (List) pInner;
          int idx;
          try {
              idx = Integer.parseInt(pIndex);
          } catch (NumberFormatException exp) {
              throw new IllegalArgumentException("Non-numeric index for accessing collection " + pInner +
                      ". (index = " + pIndex + ", value to set = " +  pValue + ")",exp);
          }
  
          // For a collection, we can infer the type within the collection. We are trying to fetch
          // the old value, and if set, we use its type. Otherwise, we simply use string as value.
          Object oldValue = list.get(idx);
          Object value =
                  oldValue != null ?
                          pConverter.prepareValue(oldValue.getClass().getName(), pValue) :
                          pValue;
          list.set(idx,value);
          return oldValue;
      }
focal_method.class_method_signature: ListExtractor.setObjectValue(StringToObjectConverter pConverter, Object pInner, String pIndex, Object  pValue)
focal_method.full_signature: public Object setObjectValue(StringToObjectConverter pConverter, Object pInner, String pIndex, Object  pValue)
focal_method.identifier: setObjectValue
focal_method.invocations: parseInt get prepareValue getName getClass set
focal_method.modifiers: public
focal_method.parameters: (StringToObjectConverter pConverter, Object pInner, String pIndex, Object  pValue)
focal_method.return: Object
focal_method.signature: Object setObjectValue(StringToObjectConverter pConverter, Object pInner, String pIndex, Object  pValue)