test_class.declarator: converter
test_class.original_string: StringToObjectConverter converter;
test_class.type: StringToObjectConverter
test_class.var_name: converter
test_class.file: agent/core/src/test/java/org/jolokia/converter/object/StringToObjectConverterTest.java
test_class.identifier: StringToObjectConverterTest
test_case.body: @Test
      public void prepareValueListConversion1() {
          List<Boolean> list = new ArrayList<Boolean>();
          list.add(true);
          list.add(false);
          boolean[] res = (boolean[]) converter.prepareValue("[Z",list);
          assertTrue(res[0]);
          assertFalse(res[1]);
          Assert.assertEquals(res.length,2);
      }
test_case.class_method_signature: StringToObjectConverterTest.prepareValueListConversion1()
test_case.full_signature: @Test public void prepareValueListConversion1()
test_case.identifier: prepareValueListConversion1
test_case.invocations: add add prepareValue assertTrue assertFalse assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void prepareValueListConversion1()
focal_class.declarator: PARSER_MAP = new HashMap<String,Parser>()
focal_class.modifier: private static final
focal_class.original_string: private static final Map<String,Parser> PARSER_MAP = new HashMap<String,Parser>();
focal_class.type: Map<String,Parser>
focal_class.var_name: PARSER_MAP
focal_class.declarator: TYPE_SIGNATURE_MAP = new HashMap<String, Class>()
focal_class.modifier: private static final
focal_class.original_string: private static final Map<String,Class> TYPE_SIGNATURE_MAP = new HashMap<String, Class>();
focal_class.type: Map<String,Class>
focal_class.var_name: TYPE_SIGNATURE_MAP
focal_class.file: agent/core/src/main/java/org/jolokia/converter/object/StringToObjectConverter.java
focal_class.identifier: StringToObjectConverter
focal_class.class_method_signature: StringToObjectConverter.prepareValue(String pExpectedClassName, Object pValue)
focal_class.full_signature: public Object prepareValue(String pExpectedClassName, Object pValue)
focal_class.identifier: prepareValue
focal_class.modifiers: public
focal_class.parameters: (String pExpectedClassName, Object pValue)
focal_class.return: Object
focal_class.signature: Object prepareValue(String pExpectedClassName, Object pValue)
focal_class.class_method_signature: StringToObjectConverter.prepareValue(Class expectedClass, Object pValue)
focal_class.full_signature: private Object prepareValue(Class expectedClass, Object pValue)
focal_class.identifier: prepareValue
focal_class.modifiers: private
focal_class.parameters: (Class expectedClass, Object pValue)
focal_class.return: Object
focal_class.signature: Object prepareValue(Class expectedClass, Object pValue)
focal_class.class_method_signature: StringToObjectConverter.convertSpecialStringTags(String pValue)
focal_class.full_signature: public static String convertSpecialStringTags(String pValue)
focal_class.identifier: convertSpecialStringTags
focal_class.modifiers: public static
focal_class.parameters: (String pValue)
focal_class.return: String
focal_class.signature: String convertSpecialStringTags(String pValue)
focal_class.class_method_signature: StringToObjectConverter.prepareForDirectUsage(Class expectedClass, Object pArgument)
focal_class.full_signature: private Object prepareForDirectUsage(Class expectedClass, Object pArgument)
focal_class.identifier: prepareForDirectUsage
focal_class.modifiers: private
focal_class.parameters: (Class expectedClass, Object pArgument)
focal_class.return: Object
focal_class.signature: Object prepareForDirectUsage(Class expectedClass, Object pArgument)
focal_class.class_method_signature: StringToObjectConverter.convertByConstructor(String pType, String pValue)
focal_class.full_signature: private Object convertByConstructor(String pType, String pValue)
focal_class.identifier: convertByConstructor
focal_class.modifiers: private
focal_class.parameters: (String pType, String pValue)
focal_class.return: Object
focal_class.signature: Object convertByConstructor(String pType, String pValue)
focal_class.class_method_signature: StringToObjectConverter.convertFromString(String pType, String pValue)
focal_class.full_signature: public Object convertFromString(String pType, String pValue)
focal_class.identifier: convertFromString
focal_class.modifiers: public
focal_class.parameters: (String pType, String pValue)
focal_class.return: Object
focal_class.signature: Object convertFromString(String pType, String pValue)
focal_class.class_method_signature: StringToObjectConverter.convertToArray(String pType, String pValue)
focal_class.full_signature: private Object convertToArray(String pType, String pValue)
focal_class.identifier: convertToArray
focal_class.modifiers: private
focal_class.parameters: (String pType, String pValue)
focal_class.return: Object
focal_class.signature: Object convertToArray(String pType, String pValue)
focal_class.class_method_signature: StringToObjectConverter.convertListToArray(Class pType, List pList)
focal_class.full_signature: private Object convertListToArray(Class pType, List pList)
focal_class.identifier: convertListToArray
focal_class.modifiers: private
focal_class.parameters: (Class pType, List pList)
focal_class.return: Object
focal_class.signature: Object convertListToArray(Class pType, List pList)
focal_method.body: public Object prepareValue(String pExpectedClassName, Object pValue) {
          if (pValue == null) {
              return null;
          } else {
              Class expectedClass = ClassUtil.classForName(pExpectedClassName);
              Object param = null;
              if (expectedClass != null) {
                  param = prepareValue(expectedClass,pValue);
              }
              if (param == null) {
                  // Ok, we try to convert it from a string
                  // If expectedClass is null, it is probably a native type, so we
                  // let happen the string conversion
                  // later on (e.g. conversion of pArgument.toString()) which will throw
                  // an exception at this point if conversion can not be done
  
                  return convertFromString(pExpectedClassName, pValue.toString());
              }
              return param;
          }
      }
focal_method.class_method_signature: StringToObjectConverter.prepareValue(String pExpectedClassName, Object pValue)
focal_method.full_signature: public Object prepareValue(String pExpectedClassName, Object pValue)
focal_method.identifier: prepareValue
focal_method.invocations: classForName prepareValue convertFromString toString
focal_method.modifiers: public
focal_method.parameters: (String pExpectedClassName, Object pValue)
focal_method.return: Object
focal_method.signature: Object prepareValue(String pExpectedClassName, Object pValue)