class org.flywaydb.commandline.ConsoleLogCreator implements org.flywaydb.core.api.logging.LogCreator
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.flywaydb.commandline.ConsoleLogCreator
super_class: java.lang.Object
{
private final org.flywaydb.commandline.CommandLineArguments commandLineArguments;
descriptor: Lorg/flywaydb/commandline/CommandLineArguments;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(org.flywaydb.commandline.CommandLineArguments);
descriptor: (Lorg/flywaydb/commandline/CommandLineArguments;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 // org.flywaydb.commandline.ConsoleLogCreator this
start local 1 // org.flywaydb.commandline.CommandLineArguments commandLineArguments
0: .line 33
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 34
aload 0 /* this */
aload 1 /* commandLineArguments */
putfield org.flywaydb.commandline.ConsoleLogCreator.commandLineArguments:Lorg/flywaydb/commandline/CommandLineArguments;
2: .line 35
return
end local 1 // org.flywaydb.commandline.CommandLineArguments commandLineArguments
end local 0 // org.flywaydb.commandline.ConsoleLogCreator this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/flywaydb/commandline/ConsoleLogCreator;
0 3 1 commandLineArguments Lorg/flywaydb/commandline/CommandLineArguments;
MethodParameters:
Name Flags
commandLineArguments
public org.flywaydb.core.api.logging.Log createLogger(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Lorg/flywaydb/core/api/logging/Log;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 // org.flywaydb.commandline.ConsoleLogCreator this
start local 1 // java.lang.Class clazz
0: .line 38
new org.flywaydb.commandline.ConsoleLog
dup
aload 0 /* this */
getfield org.flywaydb.commandline.ConsoleLogCreator.commandLineArguments:Lorg/flywaydb/commandline/CommandLineArguments;
invokevirtual org.flywaydb.commandline.CommandLineArguments.getLogLevel:()Lorg/flywaydb/commandline/ConsoleLog$Level;
invokespecial org.flywaydb.commandline.ConsoleLog.<init>:(Lorg/flywaydb/commandline/ConsoleLog$Level;)V
astore 2 /* log */
start local 2 // org.flywaydb.commandline.ConsoleLog log
1: .line 39
aload 0 /* this */
getfield org.flywaydb.commandline.ConsoleLogCreator.commandLineArguments:Lorg/flywaydb/commandline/CommandLineArguments;
invokevirtual org.flywaydb.commandline.CommandLineArguments.getColor:()Lorg/flywaydb/commandline/CommandLineArguments$Color;
astore 3 /* color */
start local 3 // org.flywaydb.commandline.CommandLineArguments$Color color
2: .line 41
getstatic org.flywaydb.commandline.CommandLineArguments$Color.NEVER:Lorg/flywaydb/commandline/CommandLineArguments$Color;
aload 3 /* color */
invokevirtual org.flywaydb.commandline.CommandLineArguments$Color.equals:(Ljava/lang/Object;)Z
ifne 3
getstatic org.flywaydb.commandline.CommandLineArguments$Color.AUTO:Lorg/flywaydb/commandline/CommandLineArguments$Color;
aload 3 /* color */
invokevirtual org.flywaydb.commandline.CommandLineArguments$Color.equals:(Ljava/lang/Object;)Z
ifeq 4
invokestatic java.lang.System.console:()Ljava/io/Console;
ifnonnull 4
3: .line 42
StackMap locals: org.flywaydb.commandline.ConsoleLog org.flywaydb.commandline.CommandLineArguments$Color
StackMap stack:
aload 2 /* log */
areturn
4: .line 45
StackMap locals:
StackMap stack:
getstatic org.flywaydb.commandline.CommandLineArguments$Color.ALWAYS:Lorg/flywaydb/commandline/CommandLineArguments$Color;
aload 3 /* color */
invokevirtual org.flywaydb.commandline.CommandLineArguments$Color.equals:(Ljava/lang/Object;)Z
invokestatic org.flywaydb.commandline.ColorizedConsoleLog.install:(Z)V
5: .line 46
new org.flywaydb.commandline.ColorizedConsoleLog
dup
aload 2 /* log */
invokespecial org.flywaydb.commandline.ColorizedConsoleLog.<init>:(Lorg/flywaydb/commandline/ConsoleLog;)V
areturn
end local 3 // org.flywaydb.commandline.CommandLineArguments$Color color
end local 2 // org.flywaydb.commandline.ConsoleLog log
end local 1 // java.lang.Class clazz
end local 0 // org.flywaydb.commandline.ConsoleLogCreator this
LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/flywaydb/commandline/ConsoleLogCreator;
0 6 1 clazz Ljava/lang/Class<*>;
1 6 2 log Lorg/flywaydb/commandline/ConsoleLog;
2 6 3 color Lorg/flywaydb/commandline/CommandLineArguments$Color;
Signature: (Ljava/lang/Class<*>;)Lorg/flywaydb/core/api/logging/Log;
MethodParameters:
Name Flags
clazz
}
SourceFile: "ConsoleLogCreator.java"
InnerClasses:
final Color = org.flywaydb.commandline.CommandLineArguments$Color of org.flywaydb.commandline.CommandLineArguments
public final Level = org.flywaydb.commandline.ConsoleLog$Level of org.flywaydb.commandline.ConsoleLog