class org.flywaydb.commandline.ColorizedConsoleLog implements org.flywaydb.core.api.logging.Log
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.flywaydb.commandline.ColorizedConsoleLog
super_class: java.lang.Object
{
private final org.flywaydb.commandline.ConsoleLog log;
descriptor: Lorg/flywaydb/commandline/ConsoleLog;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public static void install(boolean);
descriptor: (Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
ifeq 2
1: ldc "jansi.force"
ldc "true"
invokestatic java.lang.System.setProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
2: StackMap locals:
StackMap stack:
invokestatic org.fusesource.jansi.AnsiConsole.systemInstall:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 force Z
MethodParameters:
Name Flags
force
public void <init>(org.flywaydb.commandline.ConsoleLog);
descriptor: (Lorg/flywaydb/commandline/ConsoleLog;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.flywaydb.commandline.ColorizedConsoleLog.log:Lorg/flywaydb/commandline/ConsoleLog;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/flywaydb/commandline/ColorizedConsoleLog;
0 3 1 log Lorg/flywaydb/commandline/ConsoleLog;
MethodParameters:
Name Flags
log
public boolean isDebugEnabled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.flywaydb.commandline.ColorizedConsoleLog.log:Lorg/flywaydb/commandline/ConsoleLog;
invokevirtual org.flywaydb.commandline.ConsoleLog.isDebugEnabled:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/flywaydb/commandline/ColorizedConsoleLog;
public void debug(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic java.lang.System.out:Ljava/io/PrintStream;
getstatic org.fusesource.jansi.Ansi$Color.BLACK:Lorg/fusesource/jansi/Ansi$Color;
invokevirtual org.flywaydb.commandline.ColorizedConsoleLog.colorizeBright:(Ljava/io/PrintStream;Lorg/fusesource/jansi/Ansi$Color;)V
1: aload 0
getfield org.flywaydb.commandline.ColorizedConsoleLog.log:Lorg/flywaydb/commandline/ConsoleLog;
aload 1
invokevirtual org.flywaydb.commandline.ConsoleLog.debug:(Ljava/lang/String;)V
2: aload 0
getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual org.flywaydb.commandline.ColorizedConsoleLog.reset:(Ljava/io/PrintStream;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/flywaydb/commandline/ColorizedConsoleLog;
0 4 1 message Ljava/lang/String;
MethodParameters:
Name Flags
message
public void info(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "Successfully"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
1: aload 0
getstatic java.lang.System.out:Ljava/io/PrintStream;
getstatic org.fusesource.jansi.Ansi$Color.GREEN:Lorg/fusesource/jansi/Ansi$Color;
invokevirtual org.flywaydb.commandline.ColorizedConsoleLog.colorize:(Ljava/io/PrintStream;Lorg/fusesource/jansi/Ansi$Color;)V
2: aload 0
getfield org.flywaydb.commandline.ColorizedConsoleLog.log:Lorg/flywaydb/commandline/ConsoleLog;
aload 1
invokevirtual org.flywaydb.commandline.ConsoleLog.info:(Ljava/lang/String;)V
3: aload 0
getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual org.flywaydb.commandline.ColorizedConsoleLog.reset:(Ljava/io/PrintStream;)V
4: goto 6
5: StackMap locals:
StackMap stack:
aload 0
getfield org.flywaydb.commandline.ColorizedConsoleLog.log:Lorg/flywaydb/commandline/ConsoleLog;
aload 1
invokevirtual org.flywaydb.commandline.ConsoleLog.info:(Ljava/lang/String;)V
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/flywaydb/commandline/ColorizedConsoleLog;
0 7 1 message Ljava/lang/String;
MethodParameters:
Name Flags
message
public void warn(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic java.lang.System.out:Ljava/io/PrintStream;
getstatic org.fusesource.jansi.Ansi$Color.YELLOW:Lorg/fusesource/jansi/Ansi$Color;
invokevirtual org.flywaydb.commandline.ColorizedConsoleLog.colorize:(Ljava/io/PrintStream;Lorg/fusesource/jansi/Ansi$Color;)V
1: aload 0
getfield org.flywaydb.commandline.ColorizedConsoleLog.log:Lorg/flywaydb/commandline/ConsoleLog;
aload 1
invokevirtual org.flywaydb.commandline.ConsoleLog.warn:(Ljava/lang/String;)V
2: aload 0
getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual org.flywaydb.commandline.ColorizedConsoleLog.reset:(Ljava/io/PrintStream;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/flywaydb/commandline/ColorizedConsoleLog;
0 4 1 message Ljava/lang/String;
MethodParameters:
Name Flags
message
public void error(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic java.lang.System.err:Ljava/io/PrintStream;
getstatic org.fusesource.jansi.Ansi$Color.RED:Lorg/fusesource/jansi/Ansi$Color;
invokevirtual org.flywaydb.commandline.ColorizedConsoleLog.colorize:(Ljava/io/PrintStream;Lorg/fusesource/jansi/Ansi$Color;)V
1: aload 0
getfield org.flywaydb.commandline.ColorizedConsoleLog.log:Lorg/flywaydb/commandline/ConsoleLog;
aload 1
invokevirtual org.flywaydb.commandline.ConsoleLog.error:(Ljava/lang/String;)V
2: aload 0
getstatic java.lang.System.err:Ljava/io/PrintStream;
invokevirtual org.flywaydb.commandline.ColorizedConsoleLog.reset:(Ljava/io/PrintStream;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/flywaydb/commandline/ColorizedConsoleLog;
0 4 1 message Ljava/lang/String;
MethodParameters:
Name Flags
message
public void error(java.lang.String, java.lang.Exception);
descriptor: (Ljava/lang/String;Ljava/lang/Exception;)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
getstatic java.lang.System.err:Ljava/io/PrintStream;
getstatic org.fusesource.jansi.Ansi$Color.RED:Lorg/fusesource/jansi/Ansi$Color;
invokevirtual org.flywaydb.commandline.ColorizedConsoleLog.colorize:(Ljava/io/PrintStream;Lorg/fusesource/jansi/Ansi$Color;)V
1: aload 0
getfield org.flywaydb.commandline.ColorizedConsoleLog.log:Lorg/flywaydb/commandline/ConsoleLog;
aload 1
aload 2
invokevirtual org.flywaydb.commandline.ConsoleLog.error:(Ljava/lang/String;Ljava/lang/Exception;)V
2: aload 0
getstatic java.lang.System.err:Ljava/io/PrintStream;
invokevirtual org.flywaydb.commandline.ColorizedConsoleLog.reset:(Ljava/io/PrintStream;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/flywaydb/commandline/ColorizedConsoleLog;
0 4 1 message Ljava/lang/String;
0 4 2 e Ljava/lang/Exception;
MethodParameters:
Name Flags
message
e
private void colorize(java.io.PrintStream, org.fusesource.jansi.Ansi$Color);
descriptor: (Ljava/io/PrintStream;Lorg/fusesource/jansi/Ansi$Color;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic org.fusesource.jansi.Ansi.ansi:()Lorg/fusesource/jansi/Ansi;
aload 2
invokevirtual org.fusesource.jansi.Ansi.fg:(Lorg/fusesource/jansi/Ansi$Color;)Lorg/fusesource/jansi/Ansi;
invokevirtual java.io.PrintStream.print:(Ljava/lang/Object;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/flywaydb/commandline/ColorizedConsoleLog;
0 2 1 stream Ljava/io/PrintStream;
0 2 2 color Lorg/fusesource/jansi/Ansi$Color;
MethodParameters:
Name Flags
stream
color
private void colorizeBright(java.io.PrintStream, org.fusesource.jansi.Ansi$Color);
descriptor: (Ljava/io/PrintStream;Lorg/fusesource/jansi/Ansi$Color;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic org.fusesource.jansi.Ansi.ansi:()Lorg/fusesource/jansi/Ansi;
aload 2
invokevirtual org.fusesource.jansi.Ansi.fgBright:(Lorg/fusesource/jansi/Ansi$Color;)Lorg/fusesource/jansi/Ansi;
invokevirtual java.io.PrintStream.print:(Ljava/lang/Object;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/flywaydb/commandline/ColorizedConsoleLog;
0 2 1 stream Ljava/io/PrintStream;
0 2 2 color Lorg/fusesource/jansi/Ansi$Color;
MethodParameters:
Name Flags
stream
color
private void reset(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.fusesource.jansi.Ansi.ansi:()Lorg/fusesource/jansi/Ansi;
invokevirtual org.fusesource.jansi.Ansi.reset:()Lorg/fusesource/jansi/Ansi;
invokevirtual java.io.PrintStream.print:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/flywaydb/commandline/ColorizedConsoleLog;
0 2 1 stream Ljava/io/PrintStream;
MethodParameters:
Name Flags
stream
}
SourceFile: "ColorizedConsoleLog.java"
InnerClasses:
public final Color = org.fusesource.jansi.Ansi$Color of org.fusesource.jansi.Ansi