public class sun.awt.X11.XAWTFormatter extends java.util.logging.Formatter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.awt.X11.XAWTFormatter
super_class: java.util.logging.Formatter
{
java.util.Date dat;
descriptor: Ljava/util/Date;
flags: (0x0000)
private static final java.lang.String format;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "{0,date} {0,time}"
private java.text.MessageFormat formatter;
descriptor: Ljava/text/MessageFormat;
flags: (0x0002) ACC_PRIVATE
private java.lang.Object[] args;
descriptor: [Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private java.lang.String lineSeparator;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
boolean displayFullRecord;
descriptor: Z
flags: (0x0000)
boolean useANSI;
descriptor: Z
flags: (0x0000)
boolean showDate;
descriptor: Z
flags: (0x0000)
boolean showLevel;
descriptor: Z
flags: (0x0000)
boolean swapMethodClass;
descriptor: Z
flags: (0x0000)
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.util.logging.Formatter.<init>:()V
1: aload 0
new java.util.Date
dup
invokespecial java.util.Date.<init>:()V
putfield sun.awt.X11.XAWTFormatter.dat:Ljava/util/Date;
2: aload 0
iconst_1
anewarray java.lang.Object
putfield sun.awt.X11.XAWTFormatter.args:[Ljava/lang/Object;
3: aload 0
4: new sun.security.action.GetPropertyAction
dup
ldc "line.separator"
invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;)V
5: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
putfield sun.awt.X11.XAWTFormatter.lineSeparator:Ljava/lang/String;
6: aload 0
iconst_0
putfield sun.awt.X11.XAWTFormatter.displayFullRecord:Z
7: aload 0
iconst_0
putfield sun.awt.X11.XAWTFormatter.useANSI:Z
8: aload 0
iconst_1
putfield sun.awt.X11.XAWTFormatter.showDate:Z
9: aload 0
iconst_1
putfield sun.awt.X11.XAWTFormatter.showLevel:Z
10: aload 0
iconst_0
putfield sun.awt.X11.XAWTFormatter.swapMethodClass:Z
11: aload 0
ldc "true"
invokestatic java.util.logging.LogManager.getLogManager:()Ljava/util/logging/LogManager;
ldc "XAWTFormatter.displayFullRecord"
invokevirtual java.util.logging.LogManager.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
putfield sun.awt.X11.XAWTFormatter.displayFullRecord:Z
12: aload 0
ldc "true"
invokestatic java.util.logging.LogManager.getLogManager:()Ljava/util/logging/LogManager;
ldc "XAWTFormatter.useANSI"
invokevirtual java.util.logging.LogManager.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
putfield sun.awt.X11.XAWTFormatter.useANSI:Z
13: aload 0
ldc "false"
invokestatic java.util.logging.LogManager.getLogManager:()Ljava/util/logging/LogManager;
ldc "XAWTFormatter.showDate"
invokevirtual java.util.logging.LogManager.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 14
iconst_0
goto 15
StackMap locals: sun.awt.X11.XAWTFormatter
StackMap stack: sun.awt.X11.XAWTFormatter
14: iconst_1
StackMap locals: sun.awt.X11.XAWTFormatter
StackMap stack: sun.awt.X11.XAWTFormatter int
15: putfield sun.awt.X11.XAWTFormatter.showDate:Z
16: aload 0
ldc "false"
invokestatic java.util.logging.LogManager.getLogManager:()Ljava/util/logging/LogManager;
ldc "XAWTFormatter.showLevel"
invokevirtual java.util.logging.LogManager.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 17
iconst_0
goto 18
StackMap locals:
StackMap stack: sun.awt.X11.XAWTFormatter
17: iconst_1
StackMap locals: sun.awt.X11.XAWTFormatter
StackMap stack: sun.awt.X11.XAWTFormatter int
18: putfield sun.awt.X11.XAWTFormatter.showLevel:Z
19: aload 0
ldc "true"
invokestatic java.util.logging.LogManager.getLogManager:()Ljava/util/logging/LogManager;
ldc "XAWTFormatter.swapMethodClass"
invokevirtual java.util.logging.LogManager.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
putfield sun.awt.X11.XAWTFormatter.swapMethodClass:Z
20: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/awt/X11/XAWTFormatter;
public synchronized java.lang.String format(java.util.logging.LogRecord);
descriptor: (Ljava/util/logging/LogRecord;)Ljava/lang/String;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 2
start local 2 1: aload 0
getfield sun.awt.X11.XAWTFormatter.useANSI:Z
ifeq 11
2: aload 1
invokevirtual java.util.logging.LogRecord.getLevel:()Ljava/util/logging/Level;
astore 3
start local 3 3: getstatic java.util.logging.Level.FINEST:Ljava/util/logging/Level;
aload 3
invokevirtual java.util.logging.Level.equals:(Ljava/lang/Object;)Z
ifeq 6
4: aload 2
ldc "\u001B[36m"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
5: goto 11
StackMap locals: java.lang.StringBuffer java.util.logging.Level
StackMap stack:
6: getstatic java.util.logging.Level.FINER:Ljava/util/logging/Level;
aload 3
invokevirtual java.util.logging.Level.equals:(Ljava/lang/Object;)Z
ifeq 9
7: aload 2
ldc "\u001B[32m"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
8: goto 11
StackMap locals:
StackMap stack:
9: getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
aload 3
invokevirtual java.util.logging.Level.equals:(Ljava/lang/Object;)Z
ifeq 11
10: aload 2
ldc "\u001B[34m"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
end local 3 11: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.X11.XAWTFormatter.displayFullRecord:Z
ifeq 42
12: aload 0
getfield sun.awt.X11.XAWTFormatter.showDate:Z
ifeq 22
13: aload 0
getfield sun.awt.X11.XAWTFormatter.dat:Ljava/util/Date;
aload 1
invokevirtual java.util.logging.LogRecord.getMillis:()J
invokevirtual java.util.Date.setTime:(J)V
14: aload 0
getfield sun.awt.X11.XAWTFormatter.args:[Ljava/lang/Object;
iconst_0
aload 0
getfield sun.awt.X11.XAWTFormatter.dat:Ljava/util/Date;
aastore
15: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 3
start local 3 16: aload 0
getfield sun.awt.X11.XAWTFormatter.formatter:Ljava/text/MessageFormat;
ifnonnull 18
17: aload 0
new java.text.MessageFormat
dup
ldc "{0,date} {0,time}"
invokespecial java.text.MessageFormat.<init>:(Ljava/lang/String;)V
putfield sun.awt.X11.XAWTFormatter.formatter:Ljava/text/MessageFormat;
18: StackMap locals: java.lang.StringBuffer
StackMap stack:
aload 0
getfield sun.awt.X11.XAWTFormatter.formatter:Ljava/text/MessageFormat;
aload 0
getfield sun.awt.X11.XAWTFormatter.args:[Ljava/lang/Object;
aload 3
aconst_null
invokevirtual java.text.MessageFormat.format:([Ljava/lang/Object;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;
pop
19: aload 2
aload 3
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;
pop
20: aload 2
ldc " "
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
end local 3 21: goto 23
22: StackMap locals:
StackMap stack:
aload 2
ldc " "
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
23: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.X11.XAWTFormatter.swapMethodClass:Z
ifeq 33
24: aload 1
invokevirtual java.util.logging.LogRecord.getSourceMethodName:()Ljava/lang/String;
ifnull 28
25: aload 2
ldc " \u001B[35m"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
26: aload 2
aload 1
invokevirtual java.util.logging.LogRecord.getSourceMethodName:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
27: aload 2
ldc "\u001B[30m "
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
28: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.logging.LogRecord.getSourceClassName:()Ljava/lang/String;
ifnull 31
29: aload 2
aload 1
invokevirtual java.util.logging.LogRecord.getSourceClassName:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
30: goto 41
31: StackMap locals:
StackMap stack:
aload 2
aload 1
invokevirtual java.util.logging.LogRecord.getLoggerName:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
32: goto 41
33: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.logging.LogRecord.getSourceClassName:()Ljava/lang/String;
ifnull 36
34: aload 2
aload 1
invokevirtual java.util.logging.LogRecord.getSourceClassName:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
35: goto 37
36: StackMap locals:
StackMap stack:
aload 2
aload 1
invokevirtual java.util.logging.LogRecord.getLoggerName:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
37: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.logging.LogRecord.getSourceMethodName:()Ljava/lang/String;
ifnull 41
38: aload 2
ldc " \u001B[35m"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
39: aload 2
aload 1
invokevirtual java.util.logging.LogRecord.getSourceMethodName:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
40: aload 2
ldc "\u001B[30m"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
41: StackMap locals:
StackMap stack:
aload 2
aload 0
getfield sun.awt.X11.XAWTFormatter.lineSeparator:Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
42: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.X11.XAWTFormatter.useANSI:Z
ifeq 52
43: aload 1
invokevirtual java.util.logging.LogRecord.getLevel:()Ljava/util/logging/Level;
astore 3
start local 3 44: getstatic java.util.logging.Level.FINEST:Ljava/util/logging/Level;
aload 3
invokevirtual java.util.logging.Level.equals:(Ljava/lang/Object;)Z
ifeq 47
45: aload 2
ldc "\u001B[36m"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
46: goto 52
StackMap locals: java.util.logging.Level
StackMap stack:
47: getstatic java.util.logging.Level.FINER:Ljava/util/logging/Level;
aload 3
invokevirtual java.util.logging.Level.equals:(Ljava/lang/Object;)Z
ifeq 50
48: aload 2
ldc "\u001B[32m"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
49: goto 52
StackMap locals:
StackMap stack:
50: getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
aload 3
invokevirtual java.util.logging.Level.equals:(Ljava/lang/Object;)Z
ifeq 52
51: aload 2
ldc "\u001B[34m"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
end local 3 52: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.X11.XAWTFormatter.showLevel:Z
ifeq 55
53: aload 2
aload 1
invokevirtual java.util.logging.LogRecord.getLevel:()Ljava/util/logging/Level;
invokevirtual java.util.logging.Level.getLocalizedName:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
54: aload 2
ldc ": "
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
55: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.awt.X11.XAWTFormatter.formatMessage:(Ljava/util/logging/LogRecord;)Ljava/lang/String;
astore 3
start local 3 56: aload 2
aload 3
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
57: aload 2
aload 0
getfield sun.awt.X11.XAWTFormatter.lineSeparator:Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
58: aload 1
invokevirtual java.util.logging.LogRecord.getThrown:()Ljava/lang/Throwable;
ifnull 66
59: new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
astore 4
start local 4 60: new java.io.PrintWriter
dup
aload 4
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
astore 5
start local 5 61: aload 1
invokevirtual java.util.logging.LogRecord.getThrown:()Ljava/lang/Throwable;
aload 5
invokevirtual java.lang.Throwable.printStackTrace:(Ljava/io/PrintWriter;)V
62: aload 5
invokevirtual java.io.PrintWriter.close:()V
63: aload 2
aload 4
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
end local 5 end local 4 64: goto 66
StackMap locals: sun.awt.X11.XAWTFormatter java.util.logging.LogRecord java.lang.StringBuffer java.lang.String
StackMap stack: java.lang.Exception
65: pop
66: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.X11.XAWTFormatter.useANSI:Z
ifeq 68
67: aload 2
ldc "\u001B[30m"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
68: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 69 0 this Lsun/awt/X11/XAWTFormatter;
0 69 1 record Ljava/util/logging/LogRecord;
1 69 2 sb Ljava/lang/StringBuffer;
3 11 3 lev Ljava/util/logging/Level;
16 21 3 text Ljava/lang/StringBuffer;
44 52 3 lev Ljava/util/logging/Level;
56 69 3 message Ljava/lang/String;
60 64 4 sw Ljava/io/StringWriter;
61 64 5 pw Ljava/io/PrintWriter;
Exception table:
from to target type
59 64 65 Class java.lang.Exception
MethodParameters:
Name Flags
record
}
SourceFile: "XAWTFormatter.java"