test_class.declarator: converter = new JodaTimeSingleFieldPeriodConverter()
test_class.original_string: JodaTimeSingleFieldPeriodConverter converter = new JodaTimeSingleFieldPeriodConverter();
test_class.type: JodaTimeSingleFieldPeriodConverter
test_class.var_name: converter
test_class.file: beanmother-joda-time-converter/src/test/java/io/beanmother/joda/converter/JodaTimeSingleFieldPeriodConverterTest.java
test_class.identifier: JodaTimeSingleFieldPeriodConverterTest
test_case.body: @Test
      public void canHandle() throws Exception {
          assertTrue(converter.canHandle("5", TypeToken.of(Hours.class)));
          assertTrue(converter.canHandle(100, TypeToken.of(Days.class)));
          assertTrue(converter.canHandle(100, TypeToken.of(Years.class)));
  
          assertFalse(converter.canHandle("2017-09-03", TypeToken.of(Months.class)));
      }
test_case.class_method_signature: JodaTimeSingleFieldPeriodConverterTest.canHandle()
test_case.full_signature: @Test public void canHandle()
test_case.identifier: canHandle
test_case.invocations: assertTrue canHandle of assertTrue canHandle of assertTrue canHandle of assertFalse canHandle of
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void canHandle()
focal_class.declarator: stringToNumberConverter = new StringToNumberConverter()
focal_class.modifier: private final static
focal_class.original_string: private final static StringToNumberConverter stringToNumberConverter = new StringToNumberConverter();
focal_class.type: StringToNumberConverter
focal_class.var_name: stringToNumberConverter
focal_class.declarator: numberToNumberConverter = new NumberToNumberConverter()
focal_class.modifier: private final static
focal_class.original_string: private final static NumberToNumberConverter numberToNumberConverter = new NumberToNumberConverter();
focal_class.type: NumberToNumberConverter
focal_class.var_name: numberToNumberConverter
focal_class.file: beanmother-joda-time-converter/src/main/java/io/beanmother/joda/converter/JodaTimeSingleFieldPeriodConverter.java
focal_class.identifier: JodaTimeSingleFieldPeriodConverter
focal_class.class_method_signature: JodaTimeSingleFieldPeriodConverter.convert(Object source, TypeToken<?> targetTypeToken)
focal_class.full_signature: @Override public Object convert(Object source, TypeToken<?> targetTypeToken)
focal_class.identifier: convert
focal_class.modifiers: @Override public
focal_class.parameters: (Object source, TypeToken<?> targetTypeToken)
focal_class.return: Object
focal_class.signature: Object convert(Object source, TypeToken<?> targetTypeToken)
focal_class.class_method_signature: JodaTimeSingleFieldPeriodConverter.canHandle(Object source, TypeToken<?> targetTypeToken)
focal_class.full_signature: @Override public boolean canHandle(Object source, TypeToken<?> targetTypeToken)
focal_class.identifier: canHandle
focal_class.modifiers: @Override public
focal_class.parameters: (Object source, TypeToken<?> targetTypeToken)
focal_class.return: boolean
focal_class.signature: boolean canHandle(Object source, TypeToken<?> targetTypeToken)
focal_class.superclass: extends AbstractConverter
focal_method.body: @Override
      public boolean canHandle(Object source, TypeToken<?> targetTypeToken) {
          return targetTypeToken.isSubtypeOf(BaseSingleFieldPeriod.class)
                  && ((source instanceof Number) || (stringToNumberConverter.canHandle(source, TypeToken.of(Long.class))));
      }
focal_method.class_method_signature: JodaTimeSingleFieldPeriodConverter.canHandle(Object source, TypeToken<?> targetTypeToken)
focal_method.full_signature: @Override public boolean canHandle(Object source, TypeToken<?> targetTypeToken)
focal_method.identifier: canHandle
focal_method.invocations: isSubtypeOf canHandle of
focal_method.modifiers: @Override public
focal_method.parameters: (Object source, TypeToken<?> targetTypeToken)
focal_method.return: boolean
focal_method.signature: boolean canHandle(Object source, TypeToken<?> targetTypeToken)