public class java.util.logging.SimpleFormatter extends java.util.logging.Formatter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.util.logging.SimpleFormatter
super_class: java.util.logging.Formatter
{
private final java.lang.String format;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 // java.util.logging.SimpleFormatter this
0: .line 58
aload 0 /* this */
invokespecial java.util.logging.Formatter.<init>:()V
1: .line 65
aload 0 /* this */
2: .line 66
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
java/util/logging/SimpleFormatter.getLoggingProperty(Ljava/lang/String;)Ljava/lang/String; (6)
(Ljava/lang/String;)Ljava/lang/String;
invokestatic jdk.internal.logger.SurrogateLogger.getSimpleFormat:(Ljava/util/function/Function;)Ljava/lang/String;
putfield java.util.logging.SimpleFormatter.format:Ljava/lang/String;
3: .line 58
return
end local 0 // java.util.logging.SimpleFormatter this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/logging/SimpleFormatter;
static java.lang.String getLoggingProperty(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 // java.lang.String name
0: .line 62
invokestatic java.util.logging.LogManager.getLogManager:()Ljava/util/logging/LogManager;
aload 0 /* name */
invokevirtual java.util.logging.LogManager.getProperty:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 // java.lang.String name
LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.lang.String format(java.util.logging.LogRecord);
descriptor: (Ljava/util/logging/LogRecord;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=2
start local 0 // java.util.logging.SimpleFormatter this
start local 1 // java.util.logging.LogRecord record
0: .line 156
aload 1 /* record */
invokevirtual java.util.logging.LogRecord.getInstant:()Ljava/time/Instant;
invokestatic java.time.ZoneId.systemDefault:()Ljava/time/ZoneId;
1: .line 155
invokestatic java.time.ZonedDateTime.ofInstant:(Ljava/time/Instant;Ljava/time/ZoneId;)Ljava/time/ZonedDateTime;
astore 2 /* zdt */
start local 2 // java.time.ZonedDateTime zdt
2: .line 158
aload 1 /* record */
invokevirtual java.util.logging.LogRecord.getSourceClassName:()Ljava/lang/String;
ifnull 7
3: .line 159
aload 1 /* record */
invokevirtual java.util.logging.LogRecord.getSourceClassName:()Ljava/lang/String;
astore 3 /* source */
start local 3 // java.lang.String source
4: .line 160
aload 1 /* record */
invokevirtual java.util.logging.LogRecord.getSourceMethodName:()Ljava/lang/String;
ifnull 8
5: .line 161
new java.lang.StringBuilder
dup
aload 3 /* source */
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;
aload 1 /* record */
invokevirtual java.util.logging.LogRecord.getSourceMethodName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3 /* source */
6: .line 163
goto 8
end local 3 // java.lang.String source
7: .line 164
StackMap locals: java.time.ZonedDateTime
StackMap stack:
aload 1 /* record */
invokevirtual java.util.logging.LogRecord.getLoggerName:()Ljava/lang/String;
astore 3 /* source */
start local 3 // java.lang.String source
8: .line 166
StackMap locals: java.lang.String
StackMap stack:
aload 0 /* this */
aload 1 /* record */
invokevirtual java.util.logging.SimpleFormatter.formatMessage:(Ljava/util/logging/LogRecord;)Ljava/lang/String;
astore 4 /* message */
start local 4 // java.lang.String message
9: .line 167
ldc ""
astore 5 /* throwable */
start local 5 // java.lang.String throwable
10: .line 168
aload 1 /* record */
invokevirtual java.util.logging.LogRecord.getThrown:()Ljava/lang/Throwable;
ifnull 17
11: .line 169
new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
astore 6 /* sw */
start local 6 // java.io.StringWriter sw
12: .line 170
new java.io.PrintWriter
dup
aload 6 /* sw */
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
astore 7 /* pw */
start local 7 // java.io.PrintWriter pw
13: .line 171
aload 7 /* pw */
invokevirtual java.io.PrintWriter.println:()V
14: .line 172
aload 1 /* record */
invokevirtual java.util.logging.LogRecord.getThrown:()Ljava/lang/Throwable;
aload 7 /* pw */
invokevirtual java.lang.Throwable.printStackTrace:(Ljava/io/PrintWriter;)V
15: .line 173
aload 7 /* pw */
invokevirtual java.io.PrintWriter.close:()V
16: .line 174
aload 6 /* sw */
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
astore 5 /* throwable */
end local 7 // java.io.PrintWriter pw
end local 6 // java.io.StringWriter sw
17: .line 176
StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 0 /* this */
getfield java.util.logging.SimpleFormatter.format:Ljava/lang/String;
bipush 6
anewarray java.lang.Object
dup
iconst_0
18: .line 177
aload 2 /* zdt */
aastore
dup
iconst_1
19: .line 178
aload 3 /* source */
aastore
dup
iconst_2
20: .line 179
aload 1 /* record */
invokevirtual java.util.logging.LogRecord.getLoggerName:()Ljava/lang/String;
aastore
dup
iconst_3
21: .line 180
aload 1 /* record */
invokevirtual java.util.logging.LogRecord.getLevel:()Ljava/util/logging/Level;
invokevirtual java.util.logging.Level.getLocalizedLevelName:()Ljava/lang/String;
aastore
dup
iconst_4
22: .line 181
aload 4 /* message */
aastore
dup
iconst_5
23: .line 182
aload 5 /* throwable */
aastore
24: .line 176
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 5 // java.lang.String throwable
end local 4 // java.lang.String message
end local 3 // java.lang.String source
end local 2 // java.time.ZonedDateTime zdt
end local 1 // java.util.logging.LogRecord record
end local 0 // java.util.logging.SimpleFormatter this
LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Ljava/util/logging/SimpleFormatter;
0 25 1 record Ljava/util/logging/LogRecord;
2 25 2 zdt Ljava/time/ZonedDateTime;
4 7 3 source Ljava/lang/String;
8 25 3 source Ljava/lang/String;
9 25 4 message Ljava/lang/String;
10 25 5 throwable Ljava/lang/String;
12 17 6 sw Ljava/io/StringWriter;
13 17 7 pw Ljava/io/PrintWriter;
MethodParameters:
Name Flags
record
}
SourceFile: "SimpleFormatter.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles