public final class java.util.Formatter implements java.io.Closeable, java.io.Flushable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: java.util.Formatter
super_class: java.lang.Object
{
private java.lang.Appendable a;
descriptor: Ljava/lang/Appendable;
flags: (0x0002) ACC_PRIVATE
private java.util.Locale l;
descriptor: Ljava/util/Locale;
flags: (0x0002) ACC_PRIVATE
private java.io.IOException lastException;
descriptor: Ljava/io/IOException;
flags: (0x0002) ACC_PRIVATE
private char zero;
descriptor: C
flags: (0x0002) ACC_PRIVATE
private static double scaleUp;
descriptor: D
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final int MAX_FD_CHARS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 30
private static final java.lang.String formatSpecifier;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "%(\\d+\\$)?([-#+ 0,(\\<]*)?(\\d+)?(\\.\\d+)?([tT])?([a-zA-Z%])"
private static java.util.regex.Pattern fsPattern;
descriptor: Ljava/util/regex/Pattern;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "%(\\d+\\$)?([-#+ 0,(\\<]*)?(\\d+)?(\\.\\d+)?([tT])?([a-zA-Z%])"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic java.util.Formatter.fsPattern:Ljava/util/regex/Pattern;
return
LocalVariableTable:
Start End Slot Name Signature
private void init(java.lang.Appendable, java.util.Locale);
descriptor: (Ljava/lang/Appendable;Ljava/util/Locale;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
putfield java.util.Formatter.a:Ljava/lang/Appendable;
1: aload 0
aload 2
putfield java.util.Formatter.l:Ljava/util/Locale;
2: aload 0
invokevirtual java.util.Formatter.setZero:()V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/Formatter;
0 4 1 a Ljava/lang/Appendable;
0 4 2 l Ljava/util/Locale;
MethodParameters:
Name Flags
a
l
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 48
putfield java.util.Formatter.zero:C
2: aload 0
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
invokevirtual java.util.Formatter.init:(Ljava/lang/Appendable;Ljava/util/Locale;)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/Formatter;
public void <init>(java.lang.Appendable);
descriptor: (Ljava/lang/Appendable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 48
putfield java.util.Formatter.zero:C
2: aload 1
ifnonnull 4
3: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
4: StackMap locals: java.util.Formatter java.lang.Appendable
StackMap stack:
aload 0
aload 1
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
invokevirtual java.util.Formatter.init:(Ljava/lang/Appendable;Ljava/util/Locale;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/Formatter;
0 6 1 a Ljava/lang/Appendable;
MethodParameters:
Name Flags
a
public void <init>(java.util.Locale);
descriptor: (Ljava/util/Locale;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 48
putfield java.util.Formatter.zero:C
2: aload 0
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokevirtual java.util.Formatter.init:(Ljava/lang/Appendable;Ljava/util/Locale;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/Formatter;
0 4 1 l Ljava/util/Locale;
MethodParameters:
Name Flags
l
public void <init>(java.lang.Appendable, java.util.Locale);
descriptor: (Ljava/lang/Appendable;Ljava/util/Locale;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 48
putfield java.util.Formatter.zero:C
2: aload 1
ifnonnull 4
3: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
4: StackMap locals: java.util.Formatter java.lang.Appendable java.util.Locale
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual java.util.Formatter.init:(Ljava/lang/Appendable;Ljava/util/Locale;)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/Formatter;
0 6 1 a Ljava/lang/Appendable;
0 6 2 l Ljava/util/Locale;
MethodParameters:
Name Flags
a
l
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 48
putfield java.util.Formatter.zero:C
2: aload 0
new java.io.BufferedWriter
dup
new java.io.OutputStreamWriter
dup
new java.io.FileOutputStream
dup
aload 1
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;)V
invokespecial java.io.BufferedWriter.<init>:(Ljava/io/Writer;)V
3: invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
4: invokevirtual java.util.Formatter.init:(Ljava/lang/Appendable;Ljava/util/Locale;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/Formatter;
0 6 1 fileName Ljava/lang/String;
Exceptions:
throws java.io.FileNotFoundException
MethodParameters:
Name Flags
fileName
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)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
aload 2
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
invokespecial java.util.Formatter.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Locale;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Formatter;
0 2 1 fileName Ljava/lang/String;
0 2 2 csn Ljava/lang/String;
Exceptions:
throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
fileName
csn
public void <init>(java.lang.String, java.lang.String, java.util.Locale);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/util/Locale;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, 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
bipush 48
putfield java.util.Formatter.zero:C
2: aload 0
new java.io.BufferedWriter
dup
new java.io.OutputStreamWriter
dup
new java.io.FileOutputStream
dup
aload 1
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
aload 2
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/lang/String;)V
invokespecial java.io.BufferedWriter.<init>:(Ljava/io/Writer;)V
3: aload 3
4: invokevirtual java.util.Formatter.init:(Ljava/lang/Appendable;Ljava/util/Locale;)V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/Formatter;
0 6 1 fileName Ljava/lang/String;
0 6 2 csn Ljava/lang/String;
0 6 3 l Ljava/util/Locale;
Exceptions:
throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
fileName
csn
l
public void <init>(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 48
putfield java.util.Formatter.zero:C
2: aload 0
new java.io.BufferedWriter
dup
new java.io.OutputStreamWriter
dup
new java.io.FileOutputStream
dup
aload 1
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;)V
invokespecial java.io.BufferedWriter.<init>:(Ljava/io/Writer;)V
3: invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
4: invokevirtual java.util.Formatter.init:(Ljava/lang/Appendable;Ljava/util/Locale;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/Formatter;
0 6 1 file Ljava/io/File;
Exceptions:
throws java.io.FileNotFoundException
MethodParameters:
Name Flags
file
public void <init>(java.io.File, java.lang.String);
descriptor: (Ljava/io/File;Ljava/lang/String;)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
aload 2
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
invokespecial java.util.Formatter.<init>:(Ljava/io/File;Ljava/lang/String;Ljava/util/Locale;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Formatter;
0 2 1 file Ljava/io/File;
0 2 2 csn Ljava/lang/String;
Exceptions:
throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
file
csn
public void <init>(java.io.File, java.lang.String, java.util.Locale);
descriptor: (Ljava/io/File;Ljava/lang/String;Ljava/util/Locale;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, 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
bipush 48
putfield java.util.Formatter.zero:C
2: aload 0
new java.io.BufferedWriter
dup
new java.io.OutputStreamWriter
dup
new java.io.FileOutputStream
dup
aload 1
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
aload 2
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/lang/String;)V
invokespecial java.io.BufferedWriter.<init>:(Ljava/io/Writer;)V
3: aload 3
4: invokevirtual java.util.Formatter.init:(Ljava/lang/Appendable;Ljava/util/Locale;)V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/Formatter;
0 6 1 file Ljava/io/File;
0 6 2 csn Ljava/lang/String;
0 6 3 l Ljava/util/Locale;
Exceptions:
throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
file
csn
l
public void <init>(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 48
putfield java.util.Formatter.zero:C
2: aload 1
ifnonnull 4
3: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
4: StackMap locals: java.util.Formatter java.io.PrintStream
StackMap stack:
aload 0
aload 1
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
invokevirtual java.util.Formatter.init:(Ljava/lang/Appendable;Ljava/util/Locale;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/Formatter;
0 6 1 ps Ljava/io/PrintStream;
MethodParameters:
Name Flags
ps
public void <init>(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 48
putfield java.util.Formatter.zero:C
2: aload 0
new java.io.BufferedWriter
dup
new java.io.OutputStreamWriter
dup
aload 1
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;)V
invokespecial java.io.BufferedWriter.<init>:(Ljava/io/Writer;)V
3: invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
4: invokevirtual java.util.Formatter.init:(Ljava/lang/Appendable;Ljava/util/Locale;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/Formatter;
0 6 1 os Ljava/io/OutputStream;
MethodParameters:
Name Flags
os
public void <init>(java.io.OutputStream, java.lang.String);
descriptor: (Ljava/io/OutputStream;Ljava/lang/String;)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
aload 2
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
invokespecial java.util.Formatter.<init>:(Ljava/io/OutputStream;Ljava/lang/String;Ljava/util/Locale;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Formatter;
0 2 1 os Ljava/io/OutputStream;
0 2 2 csn Ljava/lang/String;
Exceptions:
throws java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
os
csn
public void <init>(java.io.OutputStream, java.lang.String, java.util.Locale);
descriptor: (Ljava/io/OutputStream;Ljava/lang/String;Ljava/util/Locale;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, 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
bipush 48
putfield java.util.Formatter.zero:C
2: aload 0
new java.io.BufferedWriter
dup
new java.io.OutputStreamWriter
dup
aload 1
aload 2
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/lang/String;)V
invokespecial java.io.BufferedWriter.<init>:(Ljava/io/Writer;)V
aload 3
invokevirtual java.util.Formatter.init:(Ljava/lang/Appendable;Ljava/util/Locale;)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/Formatter;
0 4 1 os Ljava/io/OutputStream;
0 4 2 csn Ljava/lang/String;
0 4 3 l Ljava/util/Locale;
Exceptions:
throws java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
os
csn
l
private void setZero();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield java.util.Formatter.l:Ljava/util/Locale;
ifnull 3
aload 0
getfield java.util.Formatter.l:Ljava/util/Locale;
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.util.Locale.equals:(Ljava/lang/Object;)Z
ifne 3
1: aload 0
getfield java.util.Formatter.l:Ljava/util/Locale;
invokestatic java.text.DecimalFormatSymbols.getInstance:(Ljava/util/Locale;)Ljava/text/DecimalFormatSymbols;
astore 1
start local 1 2: aload 0
aload 1
invokevirtual java.text.DecimalFormatSymbols.getZeroDigit:()C
putfield java.util.Formatter.zero:C
end local 1 3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/Formatter;
2 3 1 dfs Ljava/text/DecimalFormatSymbols;
public java.util.Locale locale();
descriptor: ()Ljava/util/Locale;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.Formatter.ensureOpen:()V
1: aload 0
getfield java.util.Formatter.l:Ljava/util/Locale;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Formatter;
public java.lang.Appendable out();
descriptor: ()Ljava/lang/Appendable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.Formatter.ensureOpen:()V
1: aload 0
getfield java.util.Formatter.a:Ljava/lang/Appendable;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Formatter;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.Formatter.ensureOpen:()V
1: aload 0
getfield java.util.Formatter.a:Ljava/lang/Appendable;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Formatter;
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.util.Formatter.ensureOpen:()V
1: aload 0
getfield java.util.Formatter.a:Ljava/lang/Appendable;
instanceof java.io.Flushable
ifeq 6
2: aload 0
getfield java.util.Formatter.a:Ljava/lang/Appendable;
checkcast java.io.Flushable
invokeinterface java.io.Flushable.flush:()V
3: goto 6
StackMap locals:
StackMap stack: java.io.IOException
4: astore 1
start local 1 5: aload 0
aload 1
putfield java.util.Formatter.lastException:Ljava/io/IOException;
end local 1 6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/Formatter;
5 6 1 ioe Ljava/io/IOException;
Exception table:
from to target type
2 3 4 Class java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield java.util.Formatter.a:Ljava/lang/Appendable;
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield java.util.Formatter.a:Ljava/lang/Appendable;
instanceof java.io.Closeable
ifeq 11
3: aload 0
getfield java.util.Formatter.a:Ljava/lang/Appendable;
checkcast java.io.Closeable
invokeinterface java.io.Closeable.close:()V
4: goto 11
StackMap locals:
StackMap stack: java.io.IOException
5: astore 1
start local 1 6: aload 0
aload 1
putfield java.util.Formatter.lastException:Ljava/io/IOException;
end local 1 7: aload 0
aconst_null
putfield java.util.Formatter.a:Ljava/lang/Appendable;
goto 12
8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
9: aload 0
aconst_null
putfield java.util.Formatter.a:Ljava/lang/Appendable;
10: aload 2
athrow
11: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield java.util.Formatter.a:Ljava/lang/Appendable;
12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljava/util/Formatter;
6 7 1 ioe Ljava/io/IOException;
Exception table:
from to target type
2 4 5 Class java.io.IOException
2 7 8 any
private void ensureOpen();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.Formatter.a:Ljava/lang/Appendable;
ifnonnull 2
1: new java.util.FormatterClosedException
dup
invokespecial java.util.FormatterClosedException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/Formatter;
public java.io.IOException ioException();
descriptor: ()Ljava/io/IOException;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.Formatter.lastException:Ljava/io/IOException;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/Formatter;
public java.util.Formatter format(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
getfield java.util.Formatter.l:Ljava/util/Locale;
aload 1
aload 2
invokevirtual java.util.Formatter.format:(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/Formatter;
0 1 1 format Ljava/lang/String;
0 1 2 args [Ljava/lang/Object;
MethodParameters:
Name Flags
format
args
public java.util.Formatter format(java.util.Locale, java.lang.String, java.lang.Object[]);
descriptor: (Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual java.util.Formatter.ensureOpen:()V
1: iconst_m1
istore 4
start local 4 2: iconst_m1
istore 5
start local 5 3: aload 0
aload 2
invokevirtual java.util.Formatter.parse:(Ljava/lang/String;)[Ljava/util/Formatter$FormatString;
astore 6
start local 6 4: iconst_0
istore 7
start local 7 5: goto 35
6: StackMap locals: java.util.Formatter java.util.Locale java.lang.String java.lang.Object[] int int java.util.Formatter$FormatString[] int
StackMap stack:
aload 6
iload 7
aaload
astore 8
start local 8 7: aload 8
invokeinterface java.util.Formatter$FormatString.index:()I
istore 9
start local 9 8: iload 9
tableswitch { // -2 - 0
-2: 9
-1: 11
0: 17
default: 25
}
9: StackMap locals: java.util.Formatter$FormatString int
StackMap stack:
aload 8
aconst_null
aload 1
invokeinterface java.util.Formatter$FormatString.print:(Ljava/lang/Object;Ljava/util/Locale;)V
10: goto 34
11: StackMap locals:
StackMap stack:
iload 4
iflt 12
aload 3
ifnull 13
iload 4
aload 3
arraylength
iconst_1
isub
if_icmple 13
12: StackMap locals:
StackMap stack:
new java.util.MissingFormatArgumentException
dup
aload 8
invokeinterface java.util.Formatter$FormatString.toString:()Ljava/lang/String;
invokespecial java.util.MissingFormatArgumentException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 8
aload 3
ifnonnull 14
aconst_null
goto 15
StackMap locals:
StackMap stack: java.util.Formatter$FormatString
14: aload 3
iload 4
aaload
StackMap locals: java.util.Formatter java.util.Locale java.lang.String java.lang.Object[] int int java.util.Formatter$FormatString[] int java.util.Formatter$FormatString int
StackMap stack: java.util.Formatter$FormatString java.lang.Object
15: aload 1
invokeinterface java.util.Formatter$FormatString.print:(Ljava/lang/Object;Ljava/util/Locale;)V
16: goto 34
17: StackMap locals:
StackMap stack:
iinc 5 1
18: iload 5
istore 4
19: aload 3
ifnull 21
iload 5
aload 3
arraylength
iconst_1
isub
if_icmple 21
20: new java.util.MissingFormatArgumentException
dup
aload 8
invokeinterface java.util.Formatter$FormatString.toString:()Ljava/lang/String;
invokespecial java.util.MissingFormatArgumentException.<init>:(Ljava/lang/String;)V
athrow
21: StackMap locals:
StackMap stack:
aload 8
aload 3
ifnonnull 22
aconst_null
goto 23
StackMap locals:
StackMap stack: java.util.Formatter$FormatString
22: aload 3
iload 5
aaload
StackMap locals: java.util.Formatter java.util.Locale java.lang.String java.lang.Object[] int int java.util.Formatter$FormatString[] int java.util.Formatter$FormatString int
StackMap stack: java.util.Formatter$FormatString java.lang.Object
23: aload 1
invokeinterface java.util.Formatter$FormatString.print:(Ljava/lang/Object;Ljava/util/Locale;)V
24: goto 34
25: StackMap locals:
StackMap stack:
iload 9
iconst_1
isub
istore 4
26: aload 3
ifnull 28
iload 4
aload 3
arraylength
iconst_1
isub
if_icmple 28
27: new java.util.MissingFormatArgumentException
dup
aload 8
invokeinterface java.util.Formatter$FormatString.toString:()Ljava/lang/String;
invokespecial java.util.MissingFormatArgumentException.<init>:(Ljava/lang/String;)V
athrow
28: StackMap locals:
StackMap stack:
aload 8
aload 3
ifnonnull 29
aconst_null
goto 30
StackMap locals:
StackMap stack: java.util.Formatter$FormatString
29: aload 3
iload 4
aaload
StackMap locals: java.util.Formatter java.util.Locale java.lang.String java.lang.Object[] int int java.util.Formatter$FormatString[] int java.util.Formatter$FormatString int
StackMap stack: java.util.Formatter$FormatString java.lang.Object
30: aload 1
invokeinterface java.util.Formatter$FormatString.print:(Ljava/lang/Object;Ljava/util/Locale;)V
31: goto 34
StackMap locals:
StackMap stack: java.io.IOException
32: astore 10
start local 10 33: aload 0
aload 10
putfield java.util.Formatter.lastException:Ljava/io/IOException;
end local 10 end local 9 end local 8 34: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
35: iload 7
aload 6
arraylength
if_icmplt 6
end local 7 36: aload 0
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Ljava/util/Formatter;
0 37 1 l Ljava/util/Locale;
0 37 2 format Ljava/lang/String;
0 37 3 args [Ljava/lang/Object;
2 37 4 last I
3 37 5 lasto I
4 37 6 fsa [Ljava/util/Formatter$FormatString;
5 36 7 i I
7 34 8 fs Ljava/util/Formatter$FormatString;
8 34 9 index I
33 34 10 x Ljava/io/IOException;
Exception table:
from to target type
8 31 32 Class java.io.IOException
MethodParameters:
Name Flags
l
format
args
private java.util.Formatter$FormatString[] parse(java.lang.String);
descriptor: (Ljava/lang/String;)[Ljava/util/Formatter$FormatString;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=7, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: getstatic java.util.Formatter.fsPattern:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 3
start local 3 2: iconst_0
istore 4
start local 4 3: goto 20
4: StackMap locals: java.util.ArrayList java.util.regex.Matcher int
StackMap stack:
aload 3
iload 4
invokevirtual java.util.regex.Matcher.find:(I)Z
ifeq 17
5: aload 3
invokevirtual java.util.regex.Matcher.start:()I
iload 4
if_icmpeq 8
6: aload 0
aload 1
iload 4
aload 3
invokevirtual java.util.regex.Matcher.start:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.util.Formatter.checkText:(Ljava/lang/String;)V
7: aload 2
new java.util.Formatter$FixedString
dup
aload 0
aload 1
iload 4
aload 3
invokevirtual java.util.regex.Matcher.start:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokespecial java.util.Formatter$FixedString.<init>:(Ljava/util/Formatter;Ljava/lang/String;)V
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
8: StackMap locals:
StackMap stack:
bipush 6
anewarray java.lang.String
astore 5
start local 5 9: iconst_0
istore 6
start local 6 10: goto 13
11: StackMap locals: java.lang.String[] int
StackMap stack:
aload 5
iload 6
aload 3
iload 6
iconst_1
iadd
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
aastore
12: iinc 6 1
StackMap locals:
StackMap stack:
13: iload 6
aload 3
invokevirtual java.util.regex.Matcher.groupCount:()I
if_icmplt 11
end local 6 14: aload 2
new java.util.Formatter$FormatSpecifier
dup
aload 0
aload 0
aload 5
invokespecial java.util.Formatter$FormatSpecifier.<init>:(Ljava/util/Formatter;Ljava/util/Formatter;[Ljava/lang/String;)V
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
15: aload 3
invokevirtual java.util.regex.Matcher.end:()I
istore 4
end local 5 16: goto 20
17: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 4
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.util.Formatter.checkText:(Ljava/lang/String;)V
18: aload 2
new java.util.Formatter$FixedString
dup
aload 0
aload 1
iload 4
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokespecial java.util.Formatter$FixedString.<init>:(Ljava/util/Formatter;Ljava/lang/String;)V
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
19: goto 21
20: StackMap locals:
StackMap stack:
iload 4
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 4
21: StackMap locals:
StackMap stack:
aload 2
iconst_0
anewarray java.util.Formatter$FormatString
invokevirtual java.util.ArrayList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.util.Formatter$FormatString[]
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljava/util/Formatter;
0 22 1 s Ljava/lang/String;
1 22 2 al Ljava/util/ArrayList;
2 22 3 m Ljava/util/regex/Matcher;
3 22 4 i I
9 16 5 sa [Ljava/lang/String;
10 14 6 j I
MethodParameters:
Name Flags
s
private void checkText(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
bipush 37
invokevirtual java.lang.String.indexOf:(I)I
dup
istore 2
start local 2 1: iconst_m1
if_icmpeq 6
2: iload 2
aload 1
invokevirtual java.lang.String.length:()I
iconst_2
isub
if_icmple 3
bipush 37
goto 4
StackMap locals: int
StackMap stack:
3: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
StackMap locals:
StackMap stack: int
4: istore 3
start local 3 5: new java.util.UnknownFormatConversionException
dup
iload 3
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.util.UnknownFormatConversionException.<init>:(Ljava/lang/String;)V
athrow
end local 3 6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/Formatter;
0 7 1 s Ljava/lang/String;
1 7 2 idx I
5 6 3 c C
MethodParameters:
Name Flags
s
}
SourceFile: "Formatter.java"
NestMembers:
java.util.Formatter$BigDecimalLayoutForm java.util.Formatter$Conversion java.util.Formatter$DateTime java.util.Formatter$FixedString java.util.Formatter$Flags java.util.Formatter$FormatSpecifier java.util.Formatter$FormatSpecifier$BigDecimalLayout java.util.Formatter$FormatString
InnerClasses:
public final BigDecimalLayoutForm = java.util.Formatter$BigDecimalLayoutForm of java.util.Formatter
private Conversion = java.util.Formatter$Conversion of java.util.Formatter
private DateTime = java.util.Formatter$DateTime of java.util.Formatter
private FixedString = java.util.Formatter$FixedString of java.util.Formatter
private Flags = java.util.Formatter$Flags of java.util.Formatter
private FormatSpecifier = java.util.Formatter$FormatSpecifier of java.util.Formatter
private abstract FormatString = java.util.Formatter$FormatString of java.util.Formatter