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
{
private java.util.regex.Pattern errorPattern;
descriptor: Ljava/util/regex/Pattern;
flags: (0x0002) ACC_PRIVATE
private int errorIndex;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_m1
putfield jdk.internal.org.jline.reader.impl.DefaultHighlighter.errorIndex:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/reader/impl/DefaultHighlighter;
public void setErrorPattern(java.util.regex.Pattern);
descriptor: (Ljava/util/regex/Pattern;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.internal.org.jline.reader.impl.DefaultHighlighter.errorPattern:Ljava/util/regex/Pattern;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/reader/impl/DefaultHighlighter;
0 2 1 errorPattern Ljava/util/regex/Pattern;
MethodParameters:
Name Flags
errorPattern
public void setErrorIndex(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.internal.org.jline.reader.impl.DefaultHighlighter.errorIndex:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/reader/impl/DefaultHighlighter;
0 2 1 errorIndex I
MethodParameters:
Name Flags
errorIndex
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 52
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:
iload 9
aload 0
getfield jdk.internal.org.jline.reader.impl.DefaultHighlighter.errorIndex:I
if_icmpne 32
31: 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
32: StackMap locals:
StackMap stack:
aload 2
iload 9
invokevirtual java.lang.String.charAt:(I)C
istore 10
start local 10 33: iload 10
bipush 9
if_icmpeq 34
iload 10
bipush 10
if_icmpne 36
34: 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
35: goto 45
StackMap locals:
StackMap stack:
36: iload 10
bipush 32
if_icmpge 42
37: 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;
38: bipush 94
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.append:(C)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
39: iload 10
bipush 64
iadd
i2c
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.append:(C)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
40: 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
41: goto 45
42: StackMap locals:
StackMap stack:
iload 10
invokestatic jdk.internal.org.jline.utils.WCWidth.wcwidth:(I)I
istore 11
start local 11 43: iload 11
ifle 45
44: aload 8
iload 10
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.append:(C)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
pop
end local 11 45: StackMap locals:
StackMap stack:
iload 9
iload 4
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.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
47: StackMap locals:
StackMap stack:
iload 9
iload 6
if_icmpne 49
48: 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
49: StackMap locals:
StackMap stack:
iload 9
aload 0
getfield jdk.internal.org.jline.reader.impl.DefaultHighlighter.errorIndex:I
if_icmpne 51
50: 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 51: StackMap locals:
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
52: iload 9
aload 2
invokevirtual java.lang.String.length:()I
if_icmplt 26
end local 9 53: aload 0
getfield jdk.internal.org.jline.reader.impl.DefaultHighlighter.errorPattern:Ljava/util/regex/Pattern;
ifnull 55
54: aload 8
aload 0
getfield jdk.internal.org.jline.reader.impl.DefaultHighlighter.errorPattern:Ljava/util/regex/Pattern;
getstatic jdk.internal.org.jline.utils.AttributedStyle.INVERSE:Ljdk/internal/org/jline/utils/AttributedStyle;
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.styleMatches:(Ljava/util/regex/Pattern;Ljdk/internal/org/jline/utils/AttributedStyle;)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
pop
55: StackMap locals:
StackMap stack:
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 56 0 this Ljdk/internal/org/jline/reader/impl/DefaultHighlighter;
0 56 1 reader Ljdk/internal/org/jline/reader/LineReader;
0 56 2 buffer Ljava/lang/String;
1 56 3 underlineStart I
2 56 4 underlineEnd I
3 56 5 negativeStart I
4 56 6 negativeEnd I
5 56 7 search Ljava/lang/String;
14 16 8 x I
24 56 8 sb Ljdk/internal/org/jline/utils/AttributedStringBuilder;
25 53 9 i I
33 51 10 c C
43 45 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