public class org.springframework.format.number.NumberStyleFormatter extends org.springframework.format.number.AbstractNumberFormatter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.format.number.NumberStyleFormatter
super_class: org.springframework.format.number.AbstractNumberFormatter
{
private java.lang.String pattern;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.springframework.format.number.AbstractNumberFormatter.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/format/number/NumberStyleFormatter;
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.springframework.format.number.AbstractNumberFormatter.<init>:()V
1: aload 0
aload 1
putfield org.springframework.format.number.NumberStyleFormatter.pattern:Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/format/number/NumberStyleFormatter;
0 3 1 pattern Ljava/lang/String;
MethodParameters:
Name Flags
pattern
public void setPattern(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.format.number.NumberStyleFormatter.pattern:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/format/number/NumberStyleFormatter;
0 2 1 pattern Ljava/lang/String;
MethodParameters:
Name Flags
pattern
public java.text.NumberFormat getNumberFormat(java.util.Locale);
descriptor: (Ljava/util/Locale;)Ljava/text/NumberFormat;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.text.NumberFormat.getInstance:(Ljava/util/Locale;)Ljava/text/NumberFormat;
astore 2
start local 2 1: aload 2
instanceof java.text.DecimalFormat
ifne 5
2: aload 0
getfield org.springframework.format.number.NumberStyleFormatter.pattern:Ljava/lang/String;
ifnull 4
3: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Cannot support pattern for non-DecimalFormat: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.text.NumberFormat
StackMap stack:
aload 2
areturn
5: StackMap locals:
StackMap stack:
aload 2
checkcast java.text.DecimalFormat
astore 3
start local 3 6: aload 3
iconst_1
invokevirtual java.text.DecimalFormat.setParseBigDecimal:(Z)V
7: aload 0
getfield org.springframework.format.number.NumberStyleFormatter.pattern:Ljava/lang/String;
ifnull 9
8: aload 3
aload 0
getfield org.springframework.format.number.NumberStyleFormatter.pattern:Ljava/lang/String;
invokevirtual java.text.DecimalFormat.applyPattern:(Ljava/lang/String;)V
9: StackMap locals: java.text.DecimalFormat
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/format/number/NumberStyleFormatter;
0 10 1 locale Ljava/util/Locale;
1 10 2 format Ljava/text/NumberFormat;
6 10 3 decimalFormat Ljava/text/DecimalFormat;
MethodParameters:
Name Flags
locale
}
SourceFile: "NumberStyleFormatter.java"