test_class.declarator: gson = new GsonBuilder().setLenient().create()
test_class.modifier: private final
test_class.original_string: private final Gson gson = new GsonBuilder().setLenient().create();
test_class.type: Gson
test_class.var_name: gson
test_class.file: com.effectiveosgi.rt.config/src/test/java/com/effectiveosgi/rt/config/impl/json/TypeUtilsTest.java
test_class.identifier: TypeUtilsTest
test_case.body: @Test(expected = IllegalArgumentException.class)
      public void testInvalidType1() throws Exception {
          String label = "foo:Float:";
          JsonObject root = gson.fromJson(String.format("{ '%s' : 123 }", label), JsonObject.class);
          TypeUtils.parse(label, root.get(label));
      }
test_case.class_method_signature: TypeUtilsTest.testInvalidType1()
test_case.full_signature: @Test(expected = IllegalArgumentException.class) public void testInvalidType1()
test_case.identifier: testInvalidType1
test_case.invocations: fromJson format parse get
test_case.modifiers: @Test(expected = IllegalArgumentException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInvalidType1()
focal_class.declarator: ID = Function.identity()
focal_class.modifier: static final
focal_class.original_string: static final Function<JsonElement,JsonElement> ID = Function.identity();
focal_class.type: Function<JsonElement,JsonElement>
focal_class.var_name: ID
focal_class.file: com.effectiveosgi.rt.config/src/main/java/com/effectiveosgi/rt/config/impl/json/TypeUtils.java
focal_class.identifier: TypeUtils
focal_class.class_method_signature: TypeUtils.parseEntry(Map.Entry<String, JsonElement> entry)
focal_class.full_signature: static Map.Entry<String, Object> parseEntry(Map.Entry<String, JsonElement> entry)
focal_class.identifier: parseEntry
focal_class.modifiers: static
focal_class.parameters: (Map.Entry<String, JsonElement> entry)
focal_class.return: Map.Entry<String, Object>
focal_class.signature: Map.Entry<String, Object> parseEntry(Map.Entry<String, JsonElement> entry)
focal_class.class_method_signature: TypeUtils.parse(String label, JsonElement element)
focal_class.full_signature: static Map.Entry<String,Object> parse(String label, JsonElement element)
focal_class.identifier: parse
focal_class.modifiers: static
focal_class.parameters: (String label, JsonElement element)
focal_class.return: Map.Entry<String,Object>
focal_class.signature: Map.Entry<String,Object> parse(String label, JsonElement element)
focal_class.class_method_signature: TypeUtils.findType(String typeName)
focal_class.full_signature: static Type<?> findType(String typeName)
focal_class.identifier: findType
focal_class.modifiers: static
focal_class.parameters: (String typeName)
focal_class.return: Type<?>
focal_class.signature: Type<?> findType(String typeName)
focal_class.class_method_signature: TypeUtils.toPrimitive(JsonElement element)
focal_class.full_signature: static final JsonPrimitive toPrimitive(JsonElement element)
focal_class.identifier: toPrimitive
focal_class.modifiers: static final
focal_class.parameters: (JsonElement element)
focal_class.return: JsonPrimitive
focal_class.signature: JsonPrimitive toPrimitive(JsonElement element)
focal_class.class_method_signature: TypeUtils.toPrimitiveArray(JsonElement element)
focal_class.full_signature: static final JsonPrimitive[] toPrimitiveArray(JsonElement element)
focal_class.identifier: toPrimitiveArray
focal_class.modifiers: static final
focal_class.parameters: (JsonElement element)
focal_class.return: JsonPrimitive[]
focal_class.signature: JsonPrimitive[] toPrimitiveArray(JsonElement element)
focal_class.class_method_signature: TypeUtils.arrayParser(Class<?> componentClass, Function<JsonElement, T> componentParser)
focal_class.full_signature: static final Function<JsonElement, Object> arrayParser(Class<?> componentClass, Function<JsonElement, T> componentParser)
focal_class.identifier: arrayParser
focal_class.modifiers: static final
focal_class.parameters: (Class<?> componentClass, Function<JsonElement, T> componentParser)
focal_class.return: Function<JsonElement, Object>
focal_class.signature: Function<JsonElement, Object> arrayParser(Class<?> componentClass, Function<JsonElement, T> componentParser)
focal_class.class_method_signature: TypeUtils.collectionParser(Function<JsonElement, T> componentParser)
focal_class.full_signature: static final Function<JsonElement, Object> collectionParser(Function<JsonElement, T> componentParser)
focal_class.identifier: collectionParser
focal_class.modifiers: static final
focal_class.parameters: (Function<JsonElement, T> componentParser)
focal_class.return: Function<JsonElement, Object>
focal_class.signature: Function<JsonElement, Object> collectionParser(Function<JsonElement, T> componentParser)
focal_class.class_method_signature: TypeUtils.parseDefault(JsonPrimitive primitive)
focal_class.full_signature: static final Object parseDefault(JsonPrimitive primitive)
focal_class.identifier: parseDefault
focal_class.modifiers: static final
focal_class.parameters: (JsonPrimitive primitive)
focal_class.return: Object
focal_class.signature: Object parseDefault(JsonPrimitive primitive)
focal_class.class_method_signature: TypeUtils.parseCharacter(JsonPrimitive primitive)
focal_class.full_signature: static final Character parseCharacter(JsonPrimitive primitive)
focal_class.identifier: parseCharacter
focal_class.modifiers: static final
focal_class.parameters: (JsonPrimitive primitive)
focal_class.return: Character
focal_class.signature: Character parseCharacter(JsonPrimitive primitive)
focal_class.class_method_signature: TypeUtils.parseBoolean(JsonPrimitive primitive)
focal_class.full_signature: static final Boolean parseBoolean(JsonPrimitive primitive)
focal_class.identifier: parseBoolean
focal_class.modifiers: static final
focal_class.parameters: (JsonPrimitive primitive)
focal_class.return: Boolean
focal_class.signature: Boolean parseBoolean(JsonPrimitive primitive)
focal_method.body: static Map.Entry<String,Object> parse(String label, JsonElement element) {
          final String name;
          final String typeName;
          int colonIndex = label.indexOf(":");
          if (colonIndex < 0) {
              name = label;
              typeName = null;
          } else {
              name = label.substring(0, colonIndex);
              typeName = label.substring(colonIndex + 1);
          }
          Type<?> type = findType(typeName);
          return new MapEntry<String, Object>(name, type.parse(element));
      }
focal_method.class_method_signature: TypeUtils.parse(String label, JsonElement element)
focal_method.full_signature: static Map.Entry<String,Object> parse(String label, JsonElement element)
focal_method.identifier: parse
focal_method.invocations: indexOf substring substring findType parse
focal_method.modifiers: static
focal_method.parameters: (String label, JsonElement element)
focal_method.return: Map.Entry<String,Object>
focal_method.signature: Map.Entry<String,Object> parse(String label, JsonElement element)