public class jdk.internal.org.jline.reader.impl.DefaultHighlighter implements jdk.internal.org.jline.reader.Highlighter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.org.jline.reader.impl.DefaultHighlighter
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/reader/impl/DefaultHighlighter;
public jdk.internal.org.jline.utils.AttributedString highlight(jdk.internal.org.jline.reader.LineReader, java.lang.String);
descriptor: (Ljdk/internal/org/jline/reader/LineReader;Ljava/lang/String;)Ljdk/internal/org/jline/utils/AttributedString;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=12, args_size=3
start local 0 start local 1 start local 2 0: iconst_m1
istore 3
start local 3 1: iconst_m1
istore 4
start local 4 2: iconst_m1
istore 5
start local 5 3: iconst_m1
istore 6
start local 6 4: aload 1
invokeinterface jdk.internal.org.jline.reader.LineReader.getSearchTerm:()Ljava/lang/String;
astore 7
start local 7 5: aload 7
ifnull 9
aload 7
invokevirtual java.lang.String.length:()I
ifle 9
6: aload 2
aload 7
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 3
7: iload 3
iflt 9
8: iload 3
aload 7
invokevirtual java.lang.String.length:()I
iadd
iconst_1
isub
istore 4
9: StackMap locals: jdk.internal.org.jline.reader.impl.DefaultHighlighter jdk.internal.org.jline.reader.LineReader java.lang.String int int int int java.lang.String
StackMap stack:
aload 1
invokeinterface jdk.internal.org.jline.reader.LineReader.getRegionActive:()Ljdk/internal/org/jline/reader/LineReader$RegionType;
getstatic jdk.internal.org.jline.reader.LineReader$RegionType.NONE:Ljdk/internal/org/jline/reader/LineReader$RegionType;
if_acmpeq 23
10: aload 1
invokeinterface jdk.internal.org.jline.reader.LineReader.getRegionMark:()I
istore 5
11: aload 1
invokeinterface jdk.internal.org.jline.reader.LineReader.getBuffer:()Ljdk/internal/org/jline/reader/Buffer;
invokeinterface jdk.internal.org.jline.reader.Buffer.cursor:()I
istore 6
12: iload 5
iload 6
if_icmple 16
13: iload 6
istore 8
start local 8 14: iload 5
istore 6
15: iload 8
istore 5
end local 8 16: StackMap locals:
StackMap stack:
aload 1
invokeinterface jdk.internal.org.jline.reader.LineReader.getRegionActive:()Ljdk/internal/org/jline/reader/LineReader$RegionType;
getstatic jdk.internal.org.jline.reader.LineReader$RegionType.LINE:Ljdk/internal/org/jline/reader/LineReader$RegionType;
if_acmpne 23
17: goto 19
18: StackMap locals:
StackMap stack:
iinc 5 -1
19: StackMap locals:
StackMap stack:
iload 5
ifle 22
aload 1
invokeinterface jdk.internal.org.jline.reader.LineReader.getBuffer:()Ljdk/internal/org/jline/reader/Buffer;
iload 5
iconst_1
isub
invokeinterface jdk.internal.org.jline.reader.Buffer.atChar:(I)I
bipush 10
if_icmpne 18
20: goto 22
21: StackMap locals:
StackMap stack:
iinc 6 1
22: StackMap locals:
StackMap stack:
iload 6
aload 1
invokeinterface jdk.internal.org.jline.reader.LineReader.getBuffer:()Ljdk/internal/org/jline/reader/Buffer;
invokeinterface jdk.internal.org.jline.reader.Buffer.length:()I
iconst_1
isub
if_icmpge 23
aload 1
invokeinterface jdk.internal.org.jline.reader.LineReader.getBuffer:()Ljdk/internal/org/jline/reader/Buffer;
iload 6
iconst_1
iadd
invokeinterface jdk.internal.org.jline.reader.Buffer.atChar:(I)I
bipush 10
if_icmpne 21
23: StackMap locals:
StackMap stack:
new jdk.internal.org.jline.utils.AttributedStringBuilder
dup
invokespecial jdk.internal.org.jline.utils.AttributedStringBuilder.<init>:()V
astore 8
start local 8 24: iconst_0
istore 9
start local 9 25: goto 48
26: StackMap locals: jdk.internal.org.jline.utils.AttributedStringBuilder int
StackMap stack:
iload 9
iload 3
if_icmpne 28
27: aload 8
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/internal/org/jline/utils/AttributedStyle.underline()Ljdk/internal/org/jline/utils/AttributedStyle; (5)
(Ljdk/internal/org/jline/utils/AttributedStyle;)Ljdk/internal/org/jline/utils/AttributedStyle;
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.style:(Ljava/util/function/Function;)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
pop
28: StackMap locals:
StackMap stack:
iload 9
iload 5
if_icmpne 30
29: aload 8
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/internal/org/jline/utils/AttributedStyle.inverse()Ljdk/internal/org/jline/utils/AttributedStyle; (5)
(Ljdk/internal/org/jline/utils/AttributedStyle;)Ljdk/internal/org/jline/utils/AttributedStyle;
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.style:(Ljava/util/function/Function;)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
pop
30: StackMap locals:
StackMap stack:
aload 2
iload 9
invokevirtual java.lang.String.charAt:(I)C
istore 10
start local 10 31: iload 10
bipush 9
if_icmpeq 32
iload 10
bipush 10
if_icmpne 34
32: StackMap locals: int
StackMap stack:
aload 8
iload 10
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.append:(C)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
pop
33: goto 43
StackMap locals:
StackMap stack:
34: iload 10
bipush 32
if_icmpge 40
35: aload 8
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/internal/org/jline/utils/AttributedStyle.inverseNeg()Ljdk/internal/org/jline/utils/AttributedStyle; (5)
(Ljdk/internal/org/jline/utils/AttributedStyle;)Ljdk/internal/org/jline/utils/AttributedStyle;
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.style:(Ljava/util/function/Function;)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
36: bipush 94
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.append:(C)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
37: iload 10
bipush 64
iadd
i2c
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.append:(C)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
38: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/internal/org/jline/utils/AttributedStyle.inverseNeg()Ljdk/internal/org/jline/utils/AttributedStyle; (5)
(Ljdk/internal/org/jline/utils/AttributedStyle;)Ljdk/internal/org/jline/utils/AttributedStyle;
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.style:(Ljava/util/function/Function;)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
pop
39: goto 43
40: StackMap locals:
StackMap stack:
iload 10
invokestatic jdk.internal.org.jline.utils.WCWidth.wcwidth:(I)I
istore 11
start local 11 41: iload 11
ifle 43
42: aload 8
iload 10
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.append:(C)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
pop
end local 11 43: StackMap locals:
StackMap stack:
iload 9
iload 4
if_icmpne 45
44: aload 8
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/internal/org/jline/utils/AttributedStyle.underlineOff()Ljdk/internal/org/jline/utils/AttributedStyle; (5)
(Ljdk/internal/org/jline/utils/AttributedStyle;)Ljdk/internal/org/jline/utils/AttributedStyle;
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.style:(Ljava/util/function/Function;)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
pop
45: StackMap locals:
StackMap stack:
iload 9
iload 6
if_icmpne 47
46: aload 8
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/internal/org/jline/utils/AttributedStyle.inverseOff()Ljdk/internal/org/jline/utils/AttributedStyle; (5)
(Ljdk/internal/org/jline/utils/AttributedStyle;)Ljdk/internal/org/jline/utils/AttributedStyle;
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.style:(Ljava/util/function/Function;)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
pop
end local 10 47: StackMap locals:
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
48: iload 9
aload 2
invokevirtual java.lang.String.length:()I
if_icmplt 26
end local 9 49: aload 8
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.toAttributedString:()Ljdk/internal/org/jline/utils/AttributedString;
areturn
end local 8 end local 7 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 50 0 this Ljdk/internal/org/jline/reader/impl/DefaultHighlighter;
0 50 1 reader Ljdk/internal/org/jline/reader/LineReader;
0 50 2 buffer Ljava/lang/String;
1 50 3 underlineStart I
2 50 4 underlineEnd I
3 50 5 negativeStart I
4 50 6 negativeEnd I
5 50 7 search Ljava/lang/String;
14 16 8 x I
24 50 8 sb Ljdk/internal/org/jline/utils/AttributedStringBuilder;
25 49 9 i I
31 47 10 c C
41 43 11 w I
MethodParameters:
Name Flags
reader
buffer
}
SourceFile: "DefaultHighlighter.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final RegionType = jdk.internal.org.jline.reader.LineReader$RegionType of jdk.internal.org.jline.reader.LineReader