public class org.springframework.beans.propertyeditors.CustomNumberEditor extends java.beans.PropertyEditorSupport
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.beans.propertyeditors.CustomNumberEditor
super_class: java.beans.PropertyEditorSupport
{
private final java.lang.Class<? extends java.lang.Number> numberClass;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<+Ljava/lang/Number;>;
private final java.text.NumberFormat numberFormat;
descriptor: Ljava/text/NumberFormat;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private final boolean allowEmpty;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.Class<? extends java.lang.Number>, );
descriptor: (Ljava/lang/Class;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aconst_null
iload 2
invokespecial org.springframework.beans.propertyeditors.CustomNumberEditor.<init>:(Ljava/lang/Class;Ljava/text/NumberFormat;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/beans/propertyeditors/CustomNumberEditor;
0 2 1 numberClass Ljava/lang/Class<+Ljava/lang/Number;>;
0 2 2 allowEmpty Z
Exceptions:
throws java.lang.IllegalArgumentException
Signature: (Ljava/lang/Class<+Ljava/lang/Number;>;Z)V
MethodParameters:
Name Flags
numberClass
allowEmpty
public void <init>(java.lang.Class<? extends java.lang.Number>, java.text.NumberFormat, );
descriptor: (Ljava/lang/Class;Ljava/text/NumberFormat;Z)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.beans.PropertyEditorSupport.<init>:()V
1: ldc Ljava/lang/Number;
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 3
2: new java.lang.IllegalArgumentException
dup
ldc "Property class must be a subclass of Number"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.springframework.beans.propertyeditors.CustomNumberEditor java.lang.Class java.text.NumberFormat int
StackMap stack:
aload 0
aload 1
putfield org.springframework.beans.propertyeditors.CustomNumberEditor.numberClass:Ljava/lang/Class;
4: aload 0
aload 2
putfield org.springframework.beans.propertyeditors.CustomNumberEditor.numberFormat:Ljava/text/NumberFormat;
5: aload 0
iload 3
putfield org.springframework.beans.propertyeditors.CustomNumberEditor.allowEmpty:Z
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/beans/propertyeditors/CustomNumberEditor;
0 7 1 numberClass Ljava/lang/Class<+Ljava/lang/Number;>;
0 7 2 numberFormat Ljava/text/NumberFormat;
0 7 3 allowEmpty Z
Exceptions:
throws java.lang.IllegalArgumentException
Signature: (Ljava/lang/Class<+Ljava/lang/Number;>;Ljava/text/NumberFormat;Z)V
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
2:
MethodParameters:
Name Flags
numberClass
numberFormat
allowEmpty
public void setAsText(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.beans.propertyeditors.CustomNumberEditor.allowEmpty:Z
ifeq 3
aload 1
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifne 3
1: aload 0
aconst_null
invokevirtual org.springframework.beans.propertyeditors.CustomNumberEditor.setValue:(Ljava/lang/Object;)V
2: goto 7
3: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.beans.propertyeditors.CustomNumberEditor.numberFormat:Ljava/text/NumberFormat;
ifnull 6
4: aload 0
aload 1
aload 0
getfield org.springframework.beans.propertyeditors.CustomNumberEditor.numberClass:Ljava/lang/Class;
aload 0
getfield org.springframework.beans.propertyeditors.CustomNumberEditor.numberFormat:Ljava/text/NumberFormat;
invokestatic org.springframework.util.NumberUtils.parseNumber:(Ljava/lang/String;Ljava/lang/Class;Ljava/text/NumberFormat;)Ljava/lang/Number;
invokevirtual org.springframework.beans.propertyeditors.CustomNumberEditor.setValue:(Ljava/lang/Object;)V
5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 0
getfield org.springframework.beans.propertyeditors.CustomNumberEditor.numberClass:Ljava/lang/Class;
invokestatic org.springframework.util.NumberUtils.parseNumber:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Number;
invokevirtual org.springframework.beans.propertyeditors.CustomNumberEditor.setValue:(Ljava/lang/Object;)V
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/beans/propertyeditors/CustomNumberEditor;
0 8 1 text Ljava/lang/String;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
text
public void setValue(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.lang.Number
ifeq 3
1: aload 0
aload 1
checkcast java.lang.Number
aload 0
getfield org.springframework.beans.propertyeditors.CustomNumberEditor.numberClass:Ljava/lang/Class;
invokestatic org.springframework.util.NumberUtils.convertNumberToTargetClass:(Ljava/lang/Number;Ljava/lang/Class;)Ljava/lang/Number;
invokespecial java.beans.PropertyEditorSupport.setValue:(Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial java.beans.PropertyEditorSupport.setValue:(Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/beans/propertyeditors/CustomNumberEditor;
0 5 1 value Ljava/lang/Object;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
value
public java.lang.String getAsText();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.beans.propertyeditors.CustomNumberEditor.getValue:()Ljava/lang/Object;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: ldc ""
areturn
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield org.springframework.beans.propertyeditors.CustomNumberEditor.numberFormat:Ljava/text/NumberFormat;
ifnull 5
4: aload 0
getfield org.springframework.beans.propertyeditors.CustomNumberEditor.numberFormat:Ljava/text/NumberFormat;
aload 1
invokevirtual java.text.NumberFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
areturn
5: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/beans/propertyeditors/CustomNumberEditor;
1 6 1 value Ljava/lang/Object;
}
SourceFile: "CustomNumberEditor.java"