public class jdk.internal.org.jline.utils.StyleResolver
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.org.jline.utils.StyleResolver
super_class: java.lang.Object
{
private final java.util.function.Function<java.lang.String, java.lang.String> source;
descriptor: Ljava/util/function/Function;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Function<Ljava/lang/String;Ljava/lang/String;>;
public void <init>(java.util.function.Function<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/function/Function;)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
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.function.Function
putfield jdk.internal.org.jline.utils.StyleResolver.source:Ljava/util/function/Function;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/utils/StyleResolver;
0 3 1 source Ljava/util/function/Function<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/util/function/Function<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
source final
private static java.lang.Integer color(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Integer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 0
2: aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 33
if_icmpne 6
3: aload 0
iconst_1
aload 0
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 0
4: bipush 8
istore 1
5: goto 16
StackMap locals: int
StackMap stack:
6: aload 0
ldc "bright-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 10
7: aload 0
bipush 7
aload 0
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 0
8: bipush 8
istore 1
9: goto 16
StackMap locals:
StackMap stack:
10: aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 126
if_icmpne 16
11: aload 0
iconst_1
aload 0
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 0
12: aload 0
invokestatic jdk.internal.org.jline.utils.Colors.rgbColor:(Ljava/lang/String;)Ljava/lang/Integer;
13: areturn
14: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
15: aconst_null
areturn
16: StackMap locals:
StackMap stack:
aload 0
dup
astore 2
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 16
-734239628: 17
98: 18
99: 19
103: 20
107: 21
109: 22
114: 23
119: 24
121: 25
112785: 26
3027034: 27
3068707: 28
93818879: 29
98619139: 30
113101865: 31
828922025: 32
default: 41
}
StackMap locals: java.lang.String
StackMap stack:
17: aload 2
ldc "yellow"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 36
goto 41
StackMap locals:
StackMap stack:
18: aload 2
ldc "b"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 37
goto 41
StackMap locals:
StackMap stack:
19: aload 2
ldc "c"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 39
goto 41
StackMap locals:
StackMap stack:
20: aload 2
ldc "g"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 35
goto 41
StackMap locals:
StackMap stack:
21: aload 2
ldc "k"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 33
goto 41
StackMap locals:
StackMap stack:
22: aload 2
ldc "m"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 38
goto 41
StackMap locals:
StackMap stack:
23: aload 2
ldc "r"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 34
goto 41
StackMap locals:
StackMap stack:
24: aload 2
ldc "w"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 40
goto 41
StackMap locals:
StackMap stack:
25: aload 2
ldc "y"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 36
goto 41
StackMap locals:
StackMap stack:
26: aload 2
ldc "red"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 34
goto 41
StackMap locals:
StackMap stack:
27: aload 2
ldc "blue"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 37
goto 41
StackMap locals:
StackMap stack:
28: aload 2
ldc "cyan"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 39
goto 41
StackMap locals:
StackMap stack:
29: aload 2
ldc "black"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 33
goto 41
StackMap locals:
StackMap stack:
30: aload 2
ldc "green"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 35
goto 41
StackMap locals:
StackMap stack:
31: aload 2
ldc "white"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 40
goto 41
StackMap locals:
StackMap stack:
32: aload 2
ldc "magenta"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 38
goto 41
33: StackMap locals:
StackMap stack:
iload 1
iconst_0
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
34: StackMap locals:
StackMap stack:
iload 1
iconst_1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
35: StackMap locals:
StackMap stack:
iload 1
iconst_2
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
36: StackMap locals:
StackMap stack:
iload 1
iconst_3
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
37: StackMap locals:
StackMap stack:
iload 1
iconst_4
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
38: StackMap locals:
StackMap stack:
iload 1
iconst_5
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
39: StackMap locals:
StackMap stack:
iload 1
bipush 6
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
40: StackMap locals:
StackMap stack:
iload 1
bipush 7
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
41: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 name Ljava/lang/String;
1 42 1 flags I
Exception table:
from to target type
11 13 14 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
name
public jdk.internal.org.jline.utils.AttributedStyle resolve(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
ldc ":-"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 2
start local 2 2: iload 2
iconst_m1
if_icmpeq 5
3: aload 1
ldc ":-"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 3
start local 3 4: aload 0
aload 3
iconst_0
aaload
invokevirtual java.lang.String.trim:()Ljava/lang/String;
aload 3
iconst_1
aaload
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokevirtual jdk.internal.org.jline.utils.StyleResolver.resolve:(Ljava/lang/String;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
end local 3 5: StackMap locals: int
StackMap stack:
aload 0
getstatic jdk.internal.org.jline.utils.AttributedStyle.DEFAULT:Ljdk/internal/org/jline/utils/AttributedStyle;
aload 1
invokevirtual jdk.internal.org.jline.utils.StyleResolver.apply:(Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/org/jline/utils/StyleResolver;
0 6 1 spec Ljava/lang/String;
2 6 2 i I
4 5 3 parts [Ljava/lang/String;
MethodParameters:
Name Flags
spec final
public jdk.internal.org.jline.utils.AttributedStyle resolve(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getstatic jdk.internal.org.jline.utils.AttributedStyle.DEFAULT:Ljdk/internal/org/jline/utils/AttributedStyle;
aload 1
invokevirtual jdk.internal.org.jline.utils.StyleResolver.apply:(Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
astore 3
start local 3 2: aload 3
getstatic jdk.internal.org.jline.utils.AttributedStyle.DEFAULT:Ljdk/internal/org/jline/utils/AttributedStyle;
if_acmpne 4
aload 2
ifnull 4
3: aload 0
aload 3
aload 2
invokevirtual jdk.internal.org.jline.utils.StyleResolver.apply:(Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
astore 3
4: StackMap locals: jdk.internal.org.jline.utils.AttributedStyle
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/org/jline/utils/StyleResolver;
0 5 1 spec Ljava/lang/String;
0 5 2 defaultSpec Ljava/lang/String;
2 5 3 style Ljdk/internal/org/jline/utils/AttributedStyle;
MethodParameters:
Name Flags
spec final
defaultSpec final
private jdk.internal.org.jline.utils.AttributedStyle apply(jdk.internal.org.jline.utils.AttributedStyle, java.lang.String);
descriptor: (Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 16
StackMap locals: jdk.internal.org.jline.utils.StyleResolver jdk.internal.org.jline.utils.AttributedStyle java.lang.String top int int java.lang.String[]
StackMap stack:
1: aload 6
iload 4
aaload
astore 3
start local 3 2: aload 3
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 3
3: aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifeq 5
4: goto 15
5: StackMap locals: jdk.internal.org.jline.utils.StyleResolver jdk.internal.org.jline.utils.AttributedStyle java.lang.String java.lang.String int int java.lang.String[]
StackMap stack:
aload 3
ldc "."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 8
6: aload 0
aload 1
aload 3
invokevirtual jdk.internal.org.jline.utils.StyleResolver.applyReference:(Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
astore 1
7: goto 15
StackMap locals:
StackMap stack:
8: aload 3
ldc ":"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 11
9: aload 0
aload 1
aload 3
invokevirtual jdk.internal.org.jline.utils.StyleResolver.applyColor:(Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
astore 1
10: goto 15
StackMap locals:
StackMap stack:
11: aload 3
ldc "[0-9]+(;[0-9]+)*"
invokevirtual java.lang.String.matches:(Ljava/lang/String;)Z
ifeq 14
12: aload 0
aload 1
aload 3
invokevirtual jdk.internal.org.jline.utils.StyleResolver.applyAnsi:(Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
astore 1
13: goto 15
14: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 3
invokevirtual jdk.internal.org.jline.utils.StyleResolver.applyNamed:(Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
astore 1
end local 3 15: StackMap locals: jdk.internal.org.jline.utils.StyleResolver jdk.internal.org.jline.utils.AttributedStyle java.lang.String top int int java.lang.String[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
16: iload 4
iload 5
if_icmplt 1
17: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/internal/org/jline/utils/StyleResolver;
0 18 1 style Ljdk/internal/org/jline/utils/AttributedStyle;
0 18 2 spec Ljava/lang/String;
2 15 3 item Ljava/lang/String;
MethodParameters:
Name Flags
style
spec final
private jdk.internal.org.jline.utils.AttributedStyle applyAnsi(jdk.internal.org.jline.utils.AttributedStyle, java.lang.String);
descriptor: (Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new jdk.internal.org.jline.utils.AttributedStringBuilder
dup
invokespecial jdk.internal.org.jline.utils.AttributedStringBuilder.<init>:()V
1: aload 1
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.style:(Ljdk/internal/org/jline/utils/AttributedStyle;)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
2: new java.lang.StringBuilder
dup
ldc "\u001B["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "m"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.ansiAppend:(Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
3: invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.style:()Ljdk/internal/org/jline/utils/AttributedStyle;
4: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/org/jline/utils/StyleResolver;
0 5 1 style Ljdk/internal/org/jline/utils/AttributedStyle;
0 5 2 spec Ljava/lang/String;
MethodParameters:
Name Flags
style final
spec final
private jdk.internal.org.jline.utils.AttributedStyle applyReference(jdk.internal.org.jline.utils.AttributedStyle, java.lang.String);
descriptor: (Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual java.lang.String.length:()I
iconst_1
if_icmpeq 5
1: aload 2
iconst_1
aload 2
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 2: aload 0
getfield jdk.internal.org.jline.utils.StyleResolver.source:Ljava/util/function/Function;
aload 3
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 3: aload 4
ifnull 5
4: aload 0
aload 1
aload 4
invokevirtual jdk.internal.org.jline.utils.StyleResolver.apply:(Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
end local 4 end local 3 5: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/org/jline/utils/StyleResolver;
0 6 1 style Ljdk/internal/org/jline/utils/AttributedStyle;
0 6 2 spec Ljava/lang/String;
2 5 3 name Ljava/lang/String;
3 5 4 resolvedSpec Ljava/lang/String;
MethodParameters:
Name Flags
style final
spec final
private jdk.internal.org.jline.utils.AttributedStyle applyNamed(jdk.internal.org.jline.utils.AttributedStyle, java.lang.String);
descriptor: (Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
dup
astore 3
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 13
-1255743117: 1
-1217487446: 2
-1178781136: 3
-1026963764: 4
-967429792: 5
3029637: 6
93826908: 7
97193300: 8
384498191: 9
951023759: 10
1544803905: 11
1899216992: 12
1959910192: 13
default: 25
}
StackMap locals: java.lang.String
StackMap stack:
1: aload 3
ldc "inverse-neg"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 21
goto 25
StackMap locals:
StackMap stack:
2: aload 3
ldc "hidden"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 24
goto 25
StackMap locals:
StackMap stack:
3: aload 3
ldc "italic"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 17
goto 25
StackMap locals:
StackMap stack:
4: aload 3
ldc "underline"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 18
goto 25
StackMap locals:
StackMap stack:
5: aload 3
ldc "crossed-out"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 23
goto 25
StackMap locals:
StackMap stack:
6: aload 3
ldc "bold"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
goto 25
StackMap locals:
StackMap stack:
7: aload 3
ldc "blink"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 19
goto 25
StackMap locals:
StackMap stack:
8: aload 3
ldc "faint"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 16
goto 25
StackMap locals:
StackMap stack:
9: aload 3
ldc "crossedout"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 23
goto 25
StackMap locals:
StackMap stack:
10: aload 3
ldc "conceal"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 22
goto 25
StackMap locals:
StackMap stack:
11: aload 3
ldc "default"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 14
goto 25
StackMap locals:
StackMap stack:
12: aload 3
ldc "inverseneg"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 21
goto 25
StackMap locals:
StackMap stack:
13: aload 3
ldc "inverse"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 20
goto 25
14: StackMap locals:
StackMap stack:
getstatic jdk.internal.org.jline.utils.AttributedStyle.DEFAULT:Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
15: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.bold:()Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
16: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.faint:()Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
17: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.italic:()Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
18: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.underline:()Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
19: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.blink:()Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
20: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.inverse:()Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
21: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.inverseNeg:()Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
22: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.conceal:()Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
23: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.crossedOut:()Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
24: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.hidden:()Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
25: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Ljdk/internal/org/jline/utils/StyleResolver;
0 26 1 style Ljdk/internal/org/jline/utils/AttributedStyle;
0 26 2 name Ljava/lang/String;
MethodParameters:
Name Flags
style final
name final
private jdk.internal.org.jline.utils.AttributedStyle applyColor(jdk.internal.org.jline.utils.AttributedStyle, java.lang.String);
descriptor: (Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedStyle;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ldc ":"
iconst_2
invokevirtual java.lang.String.split:(Ljava/lang/String;I)[Ljava/lang/String;
astore 3
start local 3 1: aload 3
iconst_0
aaload
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 4
start local 4 2: aload 3
iconst_1
aaload
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 5
start local 5 3: aload 5
invokestatic jdk.internal.org.jline.utils.StyleResolver.color:(Ljava/lang/String;)Ljava/lang/Integer;
astore 6
start local 6 4: aload 6
ifnull 14
5: aload 4
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
dup
astore 7
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 6
-1332194002: 6
98: 7
102: 8
3141: 9
3265: 10
1984457027: 11
default: 14
}
StackMap locals: jdk.internal.org.jline.utils.StyleResolver jdk.internal.org.jline.utils.AttributedStyle java.lang.String java.lang.String[] java.lang.String java.lang.String java.lang.Integer java.lang.String
StackMap stack:
6: aload 7
ldc "background"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 13
goto 14
StackMap locals:
StackMap stack:
7: aload 7
ldc "b"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 13
goto 14
StackMap locals:
StackMap stack:
8: aload 7
ldc "f"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 12
goto 14
StackMap locals:
StackMap stack:
9: aload 7
ldc "bg"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 13
goto 14
StackMap locals:
StackMap stack:
10: aload 7
ldc "fg"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 12
goto 14
StackMap locals:
StackMap stack:
11: aload 7
ldc "foreground"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 12
goto 14
12: StackMap locals:
StackMap stack:
aload 1
aload 6
invokevirtual java.lang.Integer.intValue:()I
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.foreground:(I)Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
13: StackMap locals:
StackMap stack:
aload 1
aload 6
invokevirtual java.lang.Integer.intValue:()I
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.background:(I)Ljdk/internal/org/jline/utils/AttributedStyle;
areturn
14: StackMap locals:
StackMap stack:
aload 1
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/internal/org/jline/utils/StyleResolver;
0 15 1 style Ljdk/internal/org/jline/utils/AttributedStyle;
0 15 2 spec Ljava/lang/String;
1 15 3 parts [Ljava/lang/String;
2 15 4 colorMode Ljava/lang/String;
3 15 5 colorName Ljava/lang/String;
4 15 6 color Ljava/lang/Integer;
MethodParameters:
Name Flags
style final
spec final
}
SourceFile: "StyleResolver.java"