class org.springframework.format.support.FormattingConversionService$PrinterConverter implements org.springframework.core.convert.converter.GenericConverter
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.format.support.FormattingConversionService$PrinterConverter
super_class: java.lang.Object
{
private final java.lang.Class<?> fieldType;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<*>;
private final org.springframework.core.convert.TypeDescriptor printerObjectType;
descriptor: Lorg/springframework/core/convert/TypeDescriptor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.springframework.format.Printer printer;
descriptor: Lorg/springframework/format/Printer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.springframework.core.convert.ConversionService conversionService;
descriptor: Lorg/springframework/core/convert/ConversionService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.Class<?>, org.springframework.format.Printer<?>, org.springframework.core.convert.ConversionService);
descriptor: (Ljava/lang/Class;Lorg/springframework/format/Printer;Lorg/springframework/core/convert/ConversionService;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.springframework.format.support.FormattingConversionService$PrinterConverter.fieldType:Ljava/lang/Class;
2: aload 0
aload 0
aload 2
invokevirtual org.springframework.format.support.FormattingConversionService$PrinterConverter.resolvePrinterObjectType:(Lorg/springframework/format/Printer;)Ljava/lang/Class;
invokestatic org.springframework.core.convert.TypeDescriptor.valueOf:(Ljava/lang/Class;)Lorg/springframework/core/convert/TypeDescriptor;
putfield org.springframework.format.support.FormattingConversionService$PrinterConverter.printerObjectType:Lorg/springframework/core/convert/TypeDescriptor;
3: aload 0
aload 2
putfield org.springframework.format.support.FormattingConversionService$PrinterConverter.printer:Lorg/springframework/format/Printer;
4: aload 0
aload 3
putfield org.springframework.format.support.FormattingConversionService$PrinterConverter.conversionService:Lorg/springframework/core/convert/ConversionService;
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/format/support/FormattingConversionService$PrinterConverter;
0 6 1 fieldType Ljava/lang/Class<*>;
0 6 2 printer Lorg/springframework/format/Printer<*>;
0 6 3 conversionService Lorg/springframework/core/convert/ConversionService;
Signature: (Ljava/lang/Class<*>;Lorg/springframework/format/Printer<*>;Lorg/springframework/core/convert/ConversionService;)V
MethodParameters:
Name Flags
fieldType
printer
conversionService
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
aload 0
getfield org.springframework.format.support.FormattingConversionService$PrinterConverter.fieldType:Ljava/lang/Class;
ldc Ljava/lang/String;
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/format/support/FormattingConversionService$PrinterConverter;
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=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
aload 0
getfield org.springframework.format.support.FormattingConversionService$PrinterConverter.printerObjectType:Lorg/springframework/core/convert/TypeDescriptor;
invokevirtual org.springframework.core.convert.TypeDescriptor.isAssignableTo:(Lorg/springframework/core/convert/TypeDescriptor;)Z
ifne 2
1: aload 0
getfield org.springframework.format.support.FormattingConversionService$PrinterConverter.conversionService:Lorg/springframework/core/convert/ConversionService;
aload 1
aload 2
aload 0
getfield org.springframework.format.support.FormattingConversionService$PrinterConverter.printerObjectType:Lorg/springframework/core/convert/TypeDescriptor;
invokeinterface org.springframework.core.convert.ConversionService.convert:(Ljava/lang/Object;Lorg/springframework/core/convert/TypeDescriptor;Lorg/springframework/core/convert/TypeDescriptor;)Ljava/lang/Object;
astore 1
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: ldc ""
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.format.support.FormattingConversionService$PrinterConverter.printer:Lorg/springframework/format/Printer;
aload 1
invokestatic org.springframework.context.i18n.LocaleContextHolder.getLocale:()Ljava/util/Locale;
invokeinterface org.springframework.format.Printer.print:(Ljava/lang/Object;Ljava/util/Locale;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/format/support/FormattingConversionService$PrinterConverter;
0 5 1 source Ljava/lang/Object;
0 5 2 sourceType Lorg/springframework/core/convert/TypeDescriptor;
0 5 3 targetType Lorg/springframework/core/convert/TypeDescriptor;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
2:
MethodParameters:
Name Flags
source
sourceType
targetType
private java.lang.Class<?> resolvePrinterObjectType(org.springframework.format.Printer<?>);
descriptor: (Lorg/springframework/format/Printer;)Ljava/lang/Class;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Lorg/springframework/format/Printer;
invokestatic org.springframework.core.GenericTypeResolver.resolveTypeArgument:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Class;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/format/support/FormattingConversionService$PrinterConverter;
0 1 1 printer Lorg/springframework/format/Printer<*>;
Signature: (Lorg/springframework/format/Printer<*>;)Ljava/lang/Class<*>;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
printer
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
getfield org.springframework.format.support.FormattingConversionService$PrinterConverter.fieldType:Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " -> "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc Ljava/lang/String;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " : "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.springframework.format.support.FormattingConversionService$PrinterConverter.printer:Lorg/springframework/format/Printer;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/format/support/FormattingConversionService$PrinterConverter;
}
SourceFile: "FormattingConversionService.java"
NestHost: org.springframework.format.support.FormattingConversionService
InnerClasses:
public final ConvertiblePair = org.springframework.core.convert.converter.GenericConverter$ConvertiblePair of org.springframework.core.convert.converter.GenericConverter
private PrinterConverter = org.springframework.format.support.FormattingConversionService$PrinterConverter of org.springframework.format.support.FormattingConversionService