public class jdk.internal.org.jline.reader.impl.DefaultExpander implements jdk.internal.org.jline.reader.Expander
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.org.jline.reader.impl.DefaultExpander
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/DefaultExpander;
public java.lang.String expandHistory(jdk.internal.org.jline.reader.History, java.lang.String);
descriptor: (Ljdk/internal/org/jline/reader/History;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=17, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 4
start local 4 2: iconst_0
istore 5
start local 5 3: iconst_0
istore 6
start local 6 4: iconst_0
istore 7
start local 7 5: goto 119
6: StackMap locals: jdk.internal.org.jline.reader.impl.DefaultExpander jdk.internal.org.jline.reader.History java.lang.String int java.lang.StringBuilder int int int
StackMap stack:
aload 2
iload 7
invokevirtual java.lang.String.charAt:(I)C
istore 8
start local 8 7: iload 6
ifle 13
8: iinc 6 -1
iload 6
iflt 9
iconst_1
goto 10
StackMap locals: int
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: istore 5
11: aload 4
iload 8
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
12: goto 118
13: StackMap locals:
StackMap stack:
iload 5
ifeq 20
14: iload 8
bipush 117
if_icmpne 17
15: iconst_4
istore 6
16: goto 18
17: StackMap locals:
StackMap stack:
iconst_0
istore 5
18: StackMap locals:
StackMap stack:
aload 4
iload 8
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
19: goto 118
20: StackMap locals:
StackMap stack:
iload 8
bipush 39
if_icmpne 26
21: iload 3
ifeq 22
iconst_0
goto 23
StackMap locals:
StackMap stack:
22: iconst_1
StackMap locals:
StackMap stack: int
23: istore 3
24: aload 4
iload 8
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
25: goto 118
26: StackMap locals:
StackMap stack:
iload 3
ifeq 29
27: aload 4
iload 8
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
28: goto 118
29: StackMap locals:
StackMap stack:
iload 8
lookupswitch { // 3
33: 33
92: 30
94: 103
default: 117
}
30: StackMap locals:
StackMap stack:
iconst_1
istore 5
31: aload 4
iload 8
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
32: goto 118
33: StackMap locals:
StackMap stack:
iload 7
iconst_1
iadd
aload 2
invokevirtual java.lang.String.length:()I
if_icmpge 101
34: aload 2
iinc 7 1
iload 7
invokevirtual java.lang.String.charAt:(I)C
istore 8
35: iconst_0
istore 9
start local 9 36: aconst_null
astore 10
start local 10 37: iload 8
lookupswitch { // 17
9: 63
32: 63
33: 38
35: 42
36: 54
45: 66
48: 68
49: 68
50: 68
51: 68
52: 68
53: 68
54: 68
55: 68
56: 68
57: 68
63: 44
default: 92
}
38: StackMap locals: int java.lang.String
StackMap stack:
aload 1
invokeinterface jdk.internal.org.jline.reader.History.size:()I
ifne 40
39: new java.lang.IllegalArgumentException
dup
ldc "!!: event not found"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
40: StackMap locals:
StackMap stack:
aload 1
aload 1
invokeinterface jdk.internal.org.jline.reader.History.index:()I
iconst_1
isub
invokeinterface jdk.internal.org.jline.reader.History.get:(I)Ljava/lang/String;
astore 10
41: goto 98
42: StackMap locals:
StackMap stack:
aload 4
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
43: goto 98
44: StackMap locals:
StackMap stack:
aload 2
bipush 63
iload 7
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(II)I
istore 11
start local 11 45: iload 11
ifge 47
46: aload 2
invokevirtual java.lang.String.length:()I
istore 11
47: StackMap locals: int
StackMap stack:
aload 2
iload 7
iconst_1
iadd
iload 11
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 13
start local 13 48: iload 11
istore 7
49: aload 0
aload 1
aload 13
aload 1
invokeinterface jdk.internal.org.jline.reader.History.index:()I
iconst_0
invokevirtual jdk.internal.org.jline.reader.impl.DefaultExpander.searchBackwards:(Ljdk/internal/org/jline/reader/History;Ljava/lang/String;IZ)I
istore 12
start local 12 50: iload 12
ifge 52
51: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "!?"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 13
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ": event not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
52: StackMap locals: int java.lang.String
StackMap stack:
aload 1
iload 12
invokeinterface jdk.internal.org.jline.reader.History.get:(I)Ljava/lang/String;
astore 10
53: goto 98
end local 13 end local 12 end local 11 54: StackMap locals:
StackMap stack:
aload 1
invokeinterface jdk.internal.org.jline.reader.History.size:()I
ifne 56
55: new java.lang.IllegalArgumentException
dup
ldc "!$: event not found"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
56: StackMap locals:
StackMap stack:
aload 1
aload 1
invokeinterface jdk.internal.org.jline.reader.History.index:()I
iconst_1
isub
invokeinterface jdk.internal.org.jline.reader.History.get:(I)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 14
start local 14 57: aload 14
bipush 32
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 15
start local 15 58: iload 15
iconst_m1
if_icmpeq 61
59: aload 14
iload 15
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 10
60: goto 98
61: StackMap locals: jdk.internal.org.jline.reader.impl.DefaultExpander jdk.internal.org.jline.reader.History java.lang.String int java.lang.StringBuilder int int int int int java.lang.String top top top java.lang.String int
StackMap stack:
aload 14
astore 10
62: goto 98
end local 15 end local 14 63: StackMap locals: jdk.internal.org.jline.reader.impl.DefaultExpander jdk.internal.org.jline.reader.History java.lang.String int java.lang.StringBuilder int int int int int java.lang.String
StackMap stack:
aload 4
bipush 33
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
64: aload 4
iload 8
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
65: goto 98
66: StackMap locals:
StackMap stack:
iconst_1
istore 9
67: iinc 7 1
68: StackMap locals:
StackMap stack:
iload 7
istore 11
start local 11 69: goto 74
70: StackMap locals: int
StackMap stack:
aload 2
iload 7
invokevirtual java.lang.String.charAt:(I)C
istore 8
71: iload 8
bipush 48
if_icmplt 75
iload 8
bipush 57
if_icmple 73
72: goto 75
73: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
74: iload 7
aload 2
invokevirtual java.lang.String.length:()I
if_icmplt 70
75: StackMap locals:
StackMap stack:
aload 2
iload 11
iload 7
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 12
start local 12 76: goto 82
end local 12 StackMap locals:
StackMap stack: java.lang.NumberFormatException
77: pop
78: new java.lang.IllegalArgumentException
dup
79: new java.lang.StringBuilder
dup
iload 9
ifeq 80
ldc "!-"
goto 81
StackMap locals: jdk.internal.org.jline.reader.impl.DefaultExpander jdk.internal.org.jline.reader.History java.lang.String int java.lang.StringBuilder int int int int int java.lang.String int
StackMap stack: new 78 new 78 new 79 new 79
80: ldc "!"
StackMap locals: jdk.internal.org.jline.reader.impl.DefaultExpander jdk.internal.org.jline.reader.History java.lang.String int java.lang.StringBuilder int int int int int java.lang.String int
StackMap stack: new 78 new 78 new 79 new 79 java.lang.String
81: invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
iload 11
iload 7
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ": event not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
start local 12 82: StackMap locals: int
StackMap stack:
iload 9
ifeq 85
iload 12
ifle 85
iload 12
aload 1
invokeinterface jdk.internal.org.jline.reader.History.size:()I
if_icmpgt 85
83: aload 1
aload 1
invokeinterface jdk.internal.org.jline.reader.History.index:()I
iload 12
isub
invokeinterface jdk.internal.org.jline.reader.History.get:(I)Ljava/lang/String;
astore 10
84: goto 98
StackMap locals:
StackMap stack:
85: iload 9
ifne 88
iload 12
aload 1
invokeinterface jdk.internal.org.jline.reader.History.index:()I
aload 1
invokeinterface jdk.internal.org.jline.reader.History.size:()I
isub
if_icmple 88
iload 12
aload 1
invokeinterface jdk.internal.org.jline.reader.History.index:()I
if_icmpgt 88
86: aload 1
iload 12
iconst_1
isub
invokeinterface jdk.internal.org.jline.reader.History.get:(I)Ljava/lang/String;
astore 10
87: goto 98
88: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
89: new java.lang.StringBuilder
dup
iload 9
ifeq 90
ldc "!-"
goto 91
StackMap locals: jdk.internal.org.jline.reader.impl.DefaultExpander jdk.internal.org.jline.reader.History java.lang.String int java.lang.StringBuilder int int int int int java.lang.String int int
StackMap stack: new 88 new 88 new 89 new 89
90: ldc "!"
StackMap locals: jdk.internal.org.jline.reader.impl.DefaultExpander jdk.internal.org.jline.reader.History java.lang.String int java.lang.StringBuilder int int int int int java.lang.String int int
StackMap stack: new 88 new 88 new 89 new 89 java.lang.String
91: invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
iload 11
iload 7
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ": event not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 12 end local 11 92: StackMap locals:
StackMap stack:
aload 2
iload 7
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 16
start local 16 93: aload 2
invokevirtual java.lang.String.length:()I
istore 7
94: aload 0
aload 1
aload 16
aload 1
invokeinterface jdk.internal.org.jline.reader.History.index:()I
iconst_1
invokevirtual jdk.internal.org.jline.reader.impl.DefaultExpander.searchBackwards:(Ljdk/internal/org/jline/reader/History;Ljava/lang/String;IZ)I
istore 12
start local 12 95: iload 12
ifge 97
96: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "!"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 16
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ": event not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
97: StackMap locals: jdk.internal.org.jline.reader.impl.DefaultExpander jdk.internal.org.jline.reader.History java.lang.String int java.lang.StringBuilder int int int int int java.lang.String top int top top top java.lang.String
StackMap stack:
aload 1
iload 12
invokeinterface jdk.internal.org.jline.reader.History.get:(I)Ljava/lang/String;
astore 10
end local 16 end local 12 98: StackMap locals: jdk.internal.org.jline.reader.impl.DefaultExpander jdk.internal.org.jline.reader.History java.lang.String int java.lang.StringBuilder int int int int int java.lang.String
StackMap stack:
aload 10
ifnull 118
99: aload 4
aload 10
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 10 end local 9 100: goto 118
101: StackMap locals:
StackMap stack:
aload 4
iload 8
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
102: goto 118
103: StackMap locals:
StackMap stack:
iload 7
ifne 115
104: aload 2
bipush 94
iload 7
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(II)I
istore 9
start local 9 105: aload 2
bipush 94
iload 9
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(II)I
istore 10
start local 10 106: iload 10
ifge 108
107: aload 2
invokevirtual java.lang.String.length:()I
istore 10
108: StackMap locals: int int
StackMap stack:
iload 9
ifle 115
iload 10
ifle 115
109: aload 2
iload 7
iconst_1
iadd
iload 9
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 11
start local 11 110: aload 2
iload 9
iconst_1
iadd
iload 10
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 12
start local 12 111: aload 1
aload 1
invokeinterface jdk.internal.org.jline.reader.History.index:()I
iconst_1
isub
invokeinterface jdk.internal.org.jline.reader.History.get:(I)Ljava/lang/String;
aload 11
aload 12
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 13
start local 13 112: aload 4
aload 13
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
113: iload 10
iconst_1
iadd
istore 7
114: goto 118
end local 13 end local 12 end local 11 end local 10 end local 9 115: StackMap locals:
StackMap stack:
aload 4
iload 8
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
116: goto 118
117: StackMap locals:
StackMap stack:
aload 4
iload 8
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 8 118: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
119: iload 7
aload 2
invokevirtual java.lang.String.length:()I
if_icmplt 6
end local 7 120: aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
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 121 0 this Ljdk/internal/org/jline/reader/impl/DefaultExpander;
0 121 1 history Ljdk/internal/org/jline/reader/History;
0 121 2 line Ljava/lang/String;
1 121 3 inQuote Z
2 121 4 sb Ljava/lang/StringBuilder;
3 121 5 escaped Z
4 121 6 unicode I
5 120 7 i I
7 118 8 c C
36 100 9 neg Z
37 100 10 rep Ljava/lang/String;
45 54 11 i1 I
69 92 11 i1 I
50 54 12 idx I
76 77 12 idx I
82 92 12 idx I
95 98 12 idx I
48 54 13 sc Ljava/lang/String;
57 63 14 previous Ljava/lang/String;
58 63 15 lastSpace I
93 98 16 ss Ljava/lang/String;
105 115 9 i1 I
106 115 10 i2 I
110 115 11 s1 Ljava/lang/String;
111 115 12 s2 Ljava/lang/String;
112 115 13 s Ljava/lang/String;
Exception table:
from to target type
75 76 77 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
history
line
public java.lang.String expandVar(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/reader/impl/DefaultExpander;
0 1 1 word Ljava/lang/String;
MethodParameters:
Name Flags
word
protected int searchBackwards(jdk.internal.org.jline.reader.History, java.lang.String, int, boolean);
descriptor: (Ljdk/internal/org/jline/reader/History;Ljava/lang/String;IZ)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
iload 3
invokeinterface jdk.internal.org.jline.reader.History.iterator:(I)Ljava/util/ListIterator;
astore 5
start local 5 1: goto 8
2: StackMap locals: java.util.ListIterator
StackMap stack:
aload 5
invokeinterface java.util.ListIterator.previous:()Ljava/lang/Object;
checkcast jdk.internal.org.jline.reader.History$Entry
astore 6
start local 6 3: iload 4
ifeq 6
4: aload 6
invokeinterface jdk.internal.org.jline.reader.History$Entry.line:()Ljava/lang/String;
aload 2
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 8
5: aload 6
invokeinterface jdk.internal.org.jline.reader.History$Entry.index:()I
ireturn
6: StackMap locals: jdk.internal.org.jline.reader.History$Entry
StackMap stack:
aload 6
invokeinterface jdk.internal.org.jline.reader.History$Entry.line:()Ljava/lang/String;
aload 2
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 8
7: aload 6
invokeinterface jdk.internal.org.jline.reader.History$Entry.index:()I
ireturn
end local 6 8: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.ListIterator.hasPrevious:()Z
ifne 2
9: iconst_m1
ireturn
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 10 0 this Ljdk/internal/org/jline/reader/impl/DefaultExpander;
0 10 1 history Ljdk/internal/org/jline/reader/History;
0 10 2 searchTerm Ljava/lang/String;
0 10 3 startIndex I
0 10 4 startsWith Z
1 10 5 it Ljava/util/ListIterator<Ljdk/internal/org/jline/reader/History$Entry;>;
3 8 6 e Ljdk/internal/org/jline/reader/History$Entry;
MethodParameters:
Name Flags
history
searchTerm
startIndex
startsWith
}
SourceFile: "DefaultExpander.java"
InnerClasses:
public abstract Entry = jdk.internal.org.jline.reader.History$Entry of jdk.internal.org.jline.reader.History