public class jdk.jpackage.internal.Log$Logger
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.jpackage.internal.Log$Logger
super_class: java.lang.Object
{
private boolean verbose;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.io.PrintWriter out;
descriptor: Ljava/io/PrintWriter;
flags: (0x0002) ACC_PRIVATE
private java.io.PrintWriter err;
descriptor: Ljava/io/PrintWriter;
flags: (0x0002) ACC_PRIVATE
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
iconst_0
putfield jdk.jpackage.internal.Log$Logger.verbose:Z
2: aload 0
aconst_null
putfield jdk.jpackage.internal.Log$Logger.out:Ljava/io/PrintWriter;
3: aload 0
aconst_null
putfield jdk.jpackage.internal.Log$Logger.err:Ljava/io/PrintWriter;
4: aload 0
ldc "true"
ldc "JPACKAGE_DEBUG"
invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
putfield jdk.jpackage.internal.Log$Logger.verbose:Z
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jpackage/internal/Log$Logger;
public void setVerbose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield jdk.jpackage.internal.Log$Logger.verbose:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/Log$Logger;
public boolean isVerbose();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jpackage.internal.Log$Logger.verbose:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/Log$Logger;
public void setPrintWriter(java.io.PrintWriter, java.io.PrintWriter);
descriptor: (Ljava/io/PrintWriter;Ljava/io/PrintWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
putfield jdk.jpackage.internal.Log$Logger.out:Ljava/io/PrintWriter;
1: aload 0
aload 2
putfield jdk.jpackage.internal.Log$Logger.err:Ljava/io/PrintWriter;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jpackage/internal/Log$Logger;
0 3 1 out Ljava/io/PrintWriter;
0 3 2 err Ljava/io/PrintWriter;
MethodParameters:
Name Flags
out
err
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jpackage.internal.Log$Logger.out:Ljava/io/PrintWriter;
ifnull 2
1: aload 0
getfield jdk.jpackage.internal.Log$Logger.out:Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.Log$Logger.err:Ljava/io/PrintWriter;
ifnull 4
3: aload 0
getfield jdk.jpackage.internal.Log$Logger.err:Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jpackage/internal/Log$Logger;
public void info(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
getfield jdk.jpackage.internal.Log$Logger.out:Ljava/io/PrintWriter;
ifnull 2
1: aload 0
getfield jdk.jpackage.internal.Log$Logger.out:Ljava/io/PrintWriter;
aload 1
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jpackage/internal/Log$Logger;
0 3 1 msg Ljava/lang/String;
MethodParameters:
Name Flags
msg
public void fatalError(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
getfield jdk.jpackage.internal.Log$Logger.err:Ljava/io/PrintWriter;
ifnull 2
1: aload 0
getfield jdk.jpackage.internal.Log$Logger.err:Ljava/io/PrintWriter;
aload 1
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jpackage/internal/Log$Logger;
0 3 1 msg Ljava/lang/String;
MethodParameters:
Name Flags
msg
public void error(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
invokevirtual jdk.jpackage.internal.Log$Logger.addTimestamp:(Ljava/lang/String;)Ljava/lang/String;
astore 1
1: aload 0
getfield jdk.jpackage.internal.Log$Logger.err:Ljava/io/PrintWriter;
ifnull 3
2: aload 0
getfield jdk.jpackage.internal.Log$Logger.err:Ljava/io/PrintWriter;
aload 1
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jpackage/internal/Log$Logger;
0 4 1 msg Ljava/lang/String;
MethodParameters:
Name Flags
msg
public void verbose(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jpackage.internal.Log$Logger.out:Ljava/io/PrintWriter;
ifnull 3
aload 0
getfield jdk.jpackage.internal.Log$Logger.verbose:Z
ifeq 3
1: aload 0
getfield jdk.jpackage.internal.Log$Logger.out:Ljava/io/PrintWriter;
aload 0
ldc ""
invokevirtual jdk.jpackage.internal.Log$Logger.addTimestamp:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
2: aload 1
aload 0
getfield jdk.jpackage.internal.Log$Logger.out:Ljava/io/PrintWriter;
invokevirtual java.lang.Throwable.printStackTrace:(Ljava/io/PrintWriter;)V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jpackage/internal/Log$Logger;
0 4 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t
public void verbose(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
invokevirtual jdk.jpackage.internal.Log$Logger.addTimestamp:(Ljava/lang/String;)Ljava/lang/String;
astore 1
1: aload 0
getfield jdk.jpackage.internal.Log$Logger.out:Ljava/io/PrintWriter;
ifnull 3
aload 0
getfield jdk.jpackage.internal.Log$Logger.verbose:Z
ifeq 3
2: aload 0
getfield jdk.jpackage.internal.Log$Logger.out:Ljava/io/PrintWriter;
aload 1
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jpackage/internal/Log$Logger;
0 4 1 msg Ljava/lang/String;
MethodParameters:
Name Flags
msg
public void verbose(java.util.List<java.lang.String>, java.util.List<java.lang.String>, );
descriptor: (Ljava/util/List;Ljava/util/List;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield jdk.jpackage.internal.Log$Logger.verbose:Z
ifeq 15
1: new java.lang.StringBuffer
dup
ldc "Command:\n "
invokespecial java.lang.StringBuffer.<init>:(Ljava/lang/String;)V
astore 4
start local 4 2: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 5
StackMap locals: jdk.jpackage.internal.Log$Logger java.util.List java.util.List int java.lang.StringBuffer top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 4: aload 4
new java.lang.StringBuilder
dup
ldc " "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
end local 5 5: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 0
new java.lang.String
dup
aload 4
invokespecial java.lang.String.<init>:(Ljava/lang/StringBuffer;)V
invokevirtual jdk.jpackage.internal.Log$Logger.verbose:(Ljava/lang/String;)V
7: aload 2
ifnull 14
aload 2
invokeinterface java.util.List.isEmpty:()Z
ifne 14
8: new java.lang.StringBuffer
dup
ldc "Output:"
invokespecial java.lang.StringBuffer.<init>:(Ljava/lang/String;)V
astore 4
9: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 12
StackMap locals:
StackMap stack:
10: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 11: aload 4
new java.lang.StringBuilder
dup
ldc "\n "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
end local 5 12: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
13: aload 0
new java.lang.String
dup
aload 4
invokespecial java.lang.String.<init>:(Ljava/lang/StringBuffer;)V
invokevirtual jdk.jpackage.internal.Log$Logger.verbose:(Ljava/lang/String;)V
14: StackMap locals: jdk.jpackage.internal.Log$Logger java.util.List java.util.List int java.lang.StringBuffer
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "Returned: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jpackage.internal.Log$Logger.verbose:(Ljava/lang/String;)V
end local 4 15: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/jpackage/internal/Log$Logger;
0 16 1 strings Ljava/util/List<Ljava/lang/String;>;
0 16 2 output Ljava/util/List<Ljava/lang/String;>;
0 16 3 returnCode I
2 15 4 sb Ljava/lang/StringBuffer;
4 5 5 s Ljava/lang/String;
11 12 5 s Ljava/lang/String;
Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;I)V
MethodParameters:
Name Flags
strings
output
returnCode
private java.lang.String addTimestamp(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: new java.text.SimpleDateFormat
dup
ldc "HH:mm:ss.SSS"
invokespecial java.text.SimpleDateFormat.<init>:(Ljava/lang/String;)V
astore 2
start local 2 1: new java.util.Date
dup
invokestatic java.lang.System.currentTimeMillis:()J
invokespecial java.util.Date.<init>:(J)V
astore 3
start local 3 2: ldc "[%s] %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
aload 3
invokevirtual java.text.SimpleDateFormat.format:(Ljava/util/Date;)Ljava/lang/String;
aastore
dup
iconst_1
aload 1
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jpackage/internal/Log$Logger;
0 3 1 msg Ljava/lang/String;
1 3 2 sdf Ljava/text/SimpleDateFormat;
2 3 3 time Ljava/util/Date;
MethodParameters:
Name Flags
msg
}
SourceFile: "Log.java"
NestHost: jdk.jpackage.internal.Log
InnerClasses:
public Logger = jdk.jpackage.internal.Log$Logger of jdk.jpackage.internal.Log