final class org.springframework.boot.convert.StringToDurationConverter implements org.springframework.core.convert.converter.GenericConverter
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.springframework.boot.convert.StringToDurationConverter
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/convert/StringToDurationConverter;
public java.util.Set<org.springframework.core.convert.converter.GenericConverter$ConvertiblePair> getConvertibleTypes();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new org.springframework.core.convert.converter.GenericConverter$ConvertiblePair
dup
ldc Ljava/lang/String;
ldc Ljava/time/Duration;
invokespecial org.springframework.core.convert.converter.GenericConverter$ConvertiblePair.<init>:(Ljava/lang/Class;Ljava/lang/Class;)V
invokestatic java.util.Collections.singleton:(Ljava/lang/Object;)Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/convert/StringToDurationConverter;
Signature: ()Ljava/util/Set<Lorg/springframework/core/convert/converter/GenericConverter$ConvertiblePair;>;
public java.lang.Object convert(java.lang.Object, org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor);
descriptor: (Ljava/lang/Object;Lorg/springframework/core/convert/TypeDescriptor;Lorg/springframework/core/convert/TypeDescriptor;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokestatic org.springframework.util.ObjectUtils.isEmpty:(Ljava/lang/Object;)Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
aload 0
aload 3
invokevirtual org.springframework.boot.convert.StringToDurationConverter.getStyle:(Lorg/springframework/core/convert/TypeDescriptor;)Lorg/springframework/boot/convert/DurationStyle;
aload 0
aload 3
invokevirtual org.springframework.boot.convert.StringToDurationConverter.getDurationUnit:(Lorg/springframework/core/convert/TypeDescriptor;)Ljava/time/temporal/ChronoUnit;
invokevirtual org.springframework.boot.convert.StringToDurationConverter.convert:(Ljava/lang/String;Lorg/springframework/boot/convert/DurationStyle;Ljava/time/temporal/ChronoUnit;)Ljava/time/Duration;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/convert/StringToDurationConverter;
0 3 1 source Ljava/lang/Object;
0 3 2 sourceType Lorg/springframework/core/convert/TypeDescriptor;
0 3 3 targetType Lorg/springframework/core/convert/TypeDescriptor;
MethodParameters:
Name Flags
source
sourceType
targetType
private org.springframework.boot.convert.DurationStyle getStyle(org.springframework.core.convert.TypeDescriptor);
descriptor: (Lorg/springframework/core/convert/TypeDescriptor;)Lorg/springframework/boot/convert/DurationStyle;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc Lorg/springframework/boot/convert/DurationFormat;
invokevirtual org.springframework.core.convert.TypeDescriptor.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast org.springframework.boot.convert.DurationFormat
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokeinterface org.springframework.boot.convert.DurationFormat.value:()Lorg/springframework/boot/convert/DurationStyle;
goto 3
StackMap locals: org.springframework.boot.convert.DurationFormat
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: org.springframework.boot.convert.DurationStyle
3: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/boot/convert/StringToDurationConverter;
0 4 1 targetType Lorg/springframework/core/convert/TypeDescriptor;
1 4 2 annotation Lorg/springframework/boot/convert/DurationFormat;
MethodParameters:
Name Flags
targetType
private java.time.temporal.ChronoUnit getDurationUnit(org.springframework.core.convert.TypeDescriptor);
descriptor: (Lorg/springframework/core/convert/TypeDescriptor;)Ljava/time/temporal/ChronoUnit;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc Lorg/springframework/boot/convert/DurationUnit;
invokevirtual org.springframework.core.convert.TypeDescriptor.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast org.springframework.boot.convert.DurationUnit
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokeinterface org.springframework.boot.convert.DurationUnit.value:()Ljava/time/temporal/ChronoUnit;
goto 3
StackMap locals: org.springframework.boot.convert.DurationUnit
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: java.time.temporal.ChronoUnit
3: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/boot/convert/StringToDurationConverter;
0 4 1 targetType Lorg/springframework/core/convert/TypeDescriptor;
1 4 2 annotation Lorg/springframework/boot/convert/DurationUnit;
MethodParameters:
Name Flags
targetType
private java.time.Duration convert(java.lang.String, org.springframework.boot.convert.DurationStyle, java.time.temporal.ChronoUnit);
descriptor: (Ljava/lang/String;Lorg/springframework/boot/convert/DurationStyle;Ljava/time/temporal/ChronoUnit;)Ljava/time/Duration;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
ifnull 1
aload 2
goto 2
StackMap locals:
StackMap stack:
1: aload 1
invokestatic org.springframework.boot.convert.DurationStyle.detect:(Ljava/lang/String;)Lorg/springframework/boot/convert/DurationStyle;
StackMap locals:
StackMap stack: org.springframework.boot.convert.DurationStyle
2: astore 2
3: aload 2
aload 1
aload 3
invokevirtual org.springframework.boot.convert.DurationStyle.parse:(Ljava/lang/String;Ljava/time/temporal/ChronoUnit;)Ljava/time/Duration;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/boot/convert/StringToDurationConverter;
0 4 1 source Ljava/lang/String;
0 4 2 style Lorg/springframework/boot/convert/DurationStyle;
0 4 3 unit Ljava/time/temporal/ChronoUnit;
MethodParameters:
Name Flags
source
style
unit
}
SourceFile: "StringToDurationConverter.java"
InnerClasses:
public final ConvertiblePair = org.springframework.core.convert.converter.GenericConverter$ConvertiblePair of org.springframework.core.convert.converter.GenericConverter