public class jdk.internal.org.jline.utils.DiffHelper
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.org.jline.utils.DiffHelper
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/utils/DiffHelper;
public static java.util.List<jdk.internal.org.jline.utils.DiffHelper$Diff> diff(jdk.internal.org.jline.utils.AttributedString, jdk.internal.org.jline.utils.AttributedString);
descriptor: (Ljdk/internal/org/jline/utils/AttributedString;Ljdk/internal/org/jline/utils/AttributedString;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=9, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.org.jline.utils.AttributedString.length:()I
istore 2
start local 2 1: aload 1
invokevirtual jdk.internal.org.jline.utils.AttributedString.length:()I
istore 3
start local 3 2: iload 2
iload 3
invokestatic java.lang.Math.min:(II)I
istore 4
start local 4 3: iconst_0
istore 5
start local 5 4: iconst_m1
istore 6
start local 6 5: goto 12
6: StackMap locals: jdk.internal.org.jline.utils.AttributedString jdk.internal.org.jline.utils.AttributedString int int int int int
StackMap stack:
aload 0
iload 5
invokevirtual jdk.internal.org.jline.utils.AttributedString.isHidden:(I)Z
ifeq 10
7: iload 6
ifge 11
8: iload 5
istore 6
9: goto 11
10: StackMap locals:
StackMap stack:
iconst_m1
istore 6
11: StackMap locals:
StackMap stack:
iinc 5 1
12: StackMap locals:
StackMap stack:
iload 5
iload 4
if_icmpge 15
13: aload 0
iload 5
invokevirtual jdk.internal.org.jline.utils.AttributedString.charAt:(I)C
aload 1
iload 5
invokevirtual jdk.internal.org.jline.utils.AttributedString.charAt:(I)C
if_icmpne 15
14: aload 0
iload 5
invokevirtual jdk.internal.org.jline.utils.AttributedString.styleAt:(I)Ljdk/internal/org/jline/utils/AttributedStyle;
aload 1
iload 5
invokevirtual jdk.internal.org.jline.utils.AttributedString.styleAt:(I)Ljdk/internal/org/jline/utils/AttributedStyle;
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.equals:(Ljava/lang/Object;)Z
ifne 6
15: StackMap locals:
StackMap stack:
iload 6
iflt 19
16: iload 2
iload 5
if_icmple 17
aload 0
iload 5
invokevirtual jdk.internal.org.jline.utils.AttributedString.isHidden:(I)Z
ifne 18
17: StackMap locals:
StackMap stack:
iload 3
iload 5
if_icmple 19
aload 1
iload 5
invokevirtual jdk.internal.org.jline.utils.AttributedString.isHidden:(I)Z
ifeq 19
18: StackMap locals:
StackMap stack:
iload 6
istore 5
19: StackMap locals:
StackMap stack:
iconst_m1
istore 6
20: iconst_0
istore 7
start local 7 21: goto 28
22: StackMap locals: int
StackMap stack:
aload 0
iload 2
iload 7
isub
iconst_1
isub
invokevirtual jdk.internal.org.jline.utils.AttributedString.isHidden:(I)Z
ifeq 26
23: iload 6
ifge 27
24: iload 7
istore 6
25: goto 27
26: StackMap locals:
StackMap stack:
iconst_m1
istore 6
27: StackMap locals:
StackMap stack:
iinc 7 1
28: StackMap locals:
StackMap stack:
iload 7
iload 4
iload 5
isub
if_icmpge 31
29: aload 0
iload 2
iload 7
isub
iconst_1
isub
invokevirtual jdk.internal.org.jline.utils.AttributedString.charAt:(I)C
aload 1
iload 3
iload 7
isub
iconst_1
isub
invokevirtual jdk.internal.org.jline.utils.AttributedString.charAt:(I)C
if_icmpne 31
30: aload 0
iload 2
iload 7
isub
iconst_1
isub
invokevirtual jdk.internal.org.jline.utils.AttributedString.styleAt:(I)Ljdk/internal/org/jline/utils/AttributedStyle;
aload 1
iload 3
iload 7
isub
iconst_1
isub
invokevirtual jdk.internal.org.jline.utils.AttributedString.styleAt:(I)Ljdk/internal/org/jline/utils/AttributedStyle;
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.equals:(Ljava/lang/Object;)Z
ifne 22
31: StackMap locals:
StackMap stack:
iload 6
iflt 33
32: iload 6
istore 7
33: StackMap locals:
StackMap stack:
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 8
start local 8 34: iload 5
ifle 38
35: aload 8
new jdk.internal.org.jline.utils.DiffHelper$Diff
dup
getstatic jdk.internal.org.jline.utils.DiffHelper$Operation.EQUAL:Ljdk/internal/org/jline/utils/DiffHelper$Operation;
36: aload 0
iconst_0
iload 5
invokevirtual jdk.internal.org.jline.utils.AttributedString.subSequence:(II)Ljdk/internal/org/jline/utils/AttributedString;
invokespecial jdk.internal.org.jline.utils.DiffHelper$Diff.<init>:(Ljdk/internal/org/jline/utils/DiffHelper$Operation;Ljdk/internal/org/jline/utils/AttributedString;)V
37: invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
38: StackMap locals: java.util.LinkedList
StackMap stack:
iload 3
iload 5
iload 7
iadd
if_icmple 42
39: aload 8
new jdk.internal.org.jline.utils.DiffHelper$Diff
dup
getstatic jdk.internal.org.jline.utils.DiffHelper$Operation.INSERT:Ljdk/internal/org/jline/utils/DiffHelper$Operation;
40: aload 1
iload 5
iload 3
iload 7
isub
invokevirtual jdk.internal.org.jline.utils.AttributedString.subSequence:(II)Ljdk/internal/org/jline/utils/AttributedString;
invokespecial jdk.internal.org.jline.utils.DiffHelper$Diff.<init>:(Ljdk/internal/org/jline/utils/DiffHelper$Operation;Ljdk/internal/org/jline/utils/AttributedString;)V
41: invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
42: StackMap locals:
StackMap stack:
iload 2
iload 5
iload 7
iadd
if_icmple 46
43: aload 8
new jdk.internal.org.jline.utils.DiffHelper$Diff
dup
getstatic jdk.internal.org.jline.utils.DiffHelper$Operation.DELETE:Ljdk/internal/org/jline/utils/DiffHelper$Operation;
44: aload 0
iload 5
iload 2
iload 7
isub
invokevirtual jdk.internal.org.jline.utils.AttributedString.subSequence:(II)Ljdk/internal/org/jline/utils/AttributedString;
invokespecial jdk.internal.org.jline.utils.DiffHelper$Diff.<init>:(Ljdk/internal/org/jline/utils/DiffHelper$Operation;Ljdk/internal/org/jline/utils/AttributedString;)V
45: invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
46: StackMap locals:
StackMap stack:
iload 7
ifle 50
47: aload 8
new jdk.internal.org.jline.utils.DiffHelper$Diff
dup
getstatic jdk.internal.org.jline.utils.DiffHelper$Operation.EQUAL:Ljdk/internal/org/jline/utils/DiffHelper$Operation;
48: aload 0
iload 2
iload 7
isub
iload 2
invokevirtual jdk.internal.org.jline.utils.AttributedString.subSequence:(II)Ljdk/internal/org/jline/utils/AttributedString;
invokespecial jdk.internal.org.jline.utils.DiffHelper$Diff.<init>:(Ljdk/internal/org/jline/utils/DiffHelper$Operation;Ljdk/internal/org/jline/utils/AttributedString;)V
49: invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
50: StackMap locals:
StackMap stack:
aload 8
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 51 0 text1 Ljdk/internal/org/jline/utils/AttributedString;
0 51 1 text2 Ljdk/internal/org/jline/utils/AttributedString;
1 51 2 l1 I
2 51 3 l2 I
3 51 4 n I
4 51 5 commonStart I
5 51 6 startHiddenRange I
21 51 7 commonEnd I
34 51 8 diffs Ljava/util/LinkedList<Ljdk/internal/org/jline/utils/DiffHelper$Diff;>;
Signature: (Ljdk/internal/org/jline/utils/AttributedString;Ljdk/internal/org/jline/utils/AttributedString;)Ljava/util/List<Ljdk/internal/org/jline/utils/DiffHelper$Diff;>;
MethodParameters:
Name Flags
text1
text2
}
SourceFile: "DiffHelper.java"
NestMembers:
jdk.internal.org.jline.utils.DiffHelper$Diff jdk.internal.org.jline.utils.DiffHelper$Operation
InnerClasses:
public Diff = jdk.internal.org.jline.utils.DiffHelper$Diff of jdk.internal.org.jline.utils.DiffHelper
public final Operation = jdk.internal.org.jline.utils.DiffHelper$Operation of jdk.internal.org.jline.utils.DiffHelper