test_class.file: agent/core/src/test/java/org/jolokia/converter/json/ArrayExtractorTest.java
test_class.identifier: ArrayExtractorTest
test_class.superclass: extends AbstractExtractorTest
test_case.body: @Test
      public void direct() throws AttributeNotFoundException {
          int res = (Integer) extractObject(new Integer[]{1, 2, 3}, "2");
          assertEquals(res,3);
          Integer[] res2 = (Integer[]) extractObject(new Integer[]{1,2,3});
          assertEquals(res2.length,3);
          assertEquals((int) res2[0],1);
          assertEquals((int) res2[1],2);
          assertEquals((int) res2[2],3);
      }
test_case.class_method_signature: ArrayExtractorTest.direct()
test_case.full_signature: @Test public void direct()
test_case.identifier: direct
test_case.invocations: extractObject assertEquals extractObject assertEquals assertEquals assertEquals assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void direct()
focal_class.file: agent/core/src/main/java/org/jolokia/converter/json/ArrayExtractor.java
focal_class.identifier: ArrayExtractor
focal_class.interfaces: implements Extractor
focal_class.class_method_signature: ArrayExtractor.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: ArrayExtractor.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: ArrayExtractor.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: ArrayExtractor.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: ArrayExtractor.extractArray(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPath, boolean jsonify, int pLength)
focal_class.full_signature: private List<Object> extractArray(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPath, boolean jsonify, int pLength)
focal_class.identifier: extractArray
focal_class.modifiers: private
focal_class.parameters: (ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPath, boolean jsonify, int pLength)
focal_class.return: List<Object>
focal_class.signature: List<Object> extractArray(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPath, boolean jsonify, int pLength)
focal_class.class_method_signature: ArrayExtractor.extractWithPath(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPath, boolean jsonify, String pPathPart)
focal_class.full_signature: private Object extractWithPath(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPath, boolean jsonify, String pPathPart)
focal_class.identifier: extractWithPath
focal_class.modifiers: private
focal_class.parameters: (ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPath, boolean jsonify, String pPathPart)
focal_class.return: Object
focal_class.signature: Object extractWithPath(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPath, boolean jsonify, String pPathPart)
focal_method.body: public Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts,boolean jsonify) throws AttributeNotFoundException {
          int length = pConverter.getCollectionLength(Array.getLength(pValue));
          String pathPart = pPathParts.isEmpty() ? null : pPathParts.pop();
          if (pathPart != null) {
              return extractWithPath(pConverter, pValue, pPathParts, jsonify, pathPart);
          } else {
              return jsonify ? extractArray(pConverter, pValue, pPathParts, jsonify, length) : pValue;
          }
      }
focal_method.class_method_signature: ArrayExtractor.extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts,boolean jsonify)
focal_method.full_signature: public Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts,boolean jsonify)
focal_method.identifier: extractObject
focal_method.invocations: getCollectionLength getLength isEmpty pop extractWithPath extractArray
focal_method.modifiers: public
focal_method.parameters: (ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts,boolean jsonify)
focal_method.return: Object
focal_method.signature: Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts,boolean jsonify)