abstract class org.eclipse.jgit.dircache.BaseDirCacheEditor
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: org.eclipse.jgit.dircache.BaseDirCacheEditor
super_class: java.lang.Object
{
protected org.eclipse.jgit.dircache.DirCache cache;
descriptor: Lorg/eclipse/jgit/dircache/DirCache;
flags: (0x0004) ACC_PROTECTED
protected org.eclipse.jgit.dircache.DirCacheEntry[] entries;
descriptor: [Lorg/eclipse/jgit/dircache/DirCacheEntry;
flags: (0x0004) ACC_PROTECTED
protected int entryCnt;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected void <init>(org.eclipse.jgit.dircache.DirCache, int);
descriptor: (Lorg/eclipse/jgit/dircache/DirCache;I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.eclipse.jgit.dircache.BaseDirCacheEditor.cache:Lorg/eclipse/jgit/dircache/DirCache;
2: aload 0
iload 2
anewarray org.eclipse.jgit.dircache.DirCacheEntry
putfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jgit/dircache/BaseDirCacheEditor;
0 4 1 dc Lorg/eclipse/jgit/dircache/DirCache;
0 4 2 ecnt I
MethodParameters:
Name Flags
dc
ecnt
public org.eclipse.jgit.dircache.DirCache getDirCache();
descriptor: ()Lorg/eclipse/jgit/dircache/DirCache;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.cache:Lorg/eclipse/jgit/dircache/DirCache;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jgit/dircache/BaseDirCacheEditor;
protected void fastAdd(org.eclipse.jgit.dircache.DirCacheEntry);
descriptor: (Lorg/eclipse/jgit/dircache/DirCacheEntry;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
arraylength
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
if_icmpne 4
1: aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
bipush 16
iadd
iconst_3
imul
iconst_2
idiv
anewarray org.eclipse.jgit.dircache.DirCacheEntry
astore 2
start local 2 2: aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
iconst_0
aload 2
iconst_0
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 0
aload 2
putfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
end local 2 4: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
aload 0
dup
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
dup_x1
iconst_1
iadd
putfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
aload 1
aastore
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/jgit/dircache/BaseDirCacheEditor;
0 6 1 newEntry Lorg/eclipse/jgit/dircache/DirCacheEntry;
2 4 2 n [Lorg/eclipse/jgit/dircache/DirCacheEntry;
MethodParameters:
Name Flags
newEntry
protected void fastKeep(int, int);
descriptor: (II)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
iload 2
iadd
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
arraylength
if_icmple 6
1: aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
bipush 16
iadd
iconst_3
imul
iconst_2
idiv
istore 3
start local 3 2: aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
iload 2
iadd
istore 4
start local 4 3: iload 3
iload 4
invokestatic java.lang.Math.max:(II)I
anewarray org.eclipse.jgit.dircache.DirCacheEntry
astore 5
start local 5 4: aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
iconst_0
aload 5
iconst_0
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 0
aload 5
putfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
end local 5 end local 4 end local 3 6: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.cache:Lorg/eclipse/jgit/dircache/DirCache;
iload 1
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
iload 2
invokevirtual org.eclipse.jgit.dircache.DirCache.toArray:(I[Lorg/eclipse/jgit/dircache/DirCacheEntry;II)V
7: aload 0
dup
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
iload 2
iadd
putfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/eclipse/jgit/dircache/BaseDirCacheEditor;
0 9 1 pos I
0 9 2 cnt I
2 6 3 m1 I
3 6 4 m2 I
4 6 5 n [Lorg/eclipse/jgit/dircache/DirCacheEntry;
MethodParameters:
Name Flags
pos
cnt
public abstract void finish();
descriptor: ()V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
protected void replace();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.eclipse.jgit.dircache.BaseDirCacheEditor.checkNameConflicts:()V
1: aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
arraylength
iconst_2
idiv
if_icmpge 5
2: aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
anewarray org.eclipse.jgit.dircache.DirCacheEntry
astore 1
start local 1 3: aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
iconst_0
aload 1
iconst_0
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 0
aload 1
putfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
end local 1 5: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.cache:Lorg/eclipse/jgit/dircache/DirCache;
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
invokevirtual org.eclipse.jgit.dircache.DirCache.replace:([Lorg/eclipse/jgit/dircache/DirCacheEntry;I)V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/jgit/dircache/BaseDirCacheEditor;
3 5 1 n [Lorg/eclipse/jgit/dircache/DirCacheEntry;
private void checkNameConflicts();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=12, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
iconst_1
isub
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 33
3: StackMap locals: int int
StackMap stack:
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
iload 2
aaload
astore 3
start local 3 4: aload 3
invokevirtual org.eclipse.jgit.dircache.DirCacheEntry.getStage:()I
ifeq 6
5: goto 32
6: StackMap locals: org.eclipse.jgit.dircache.DirCacheEntry
StackMap stack:
aload 3
getfield org.eclipse.jgit.dircache.DirCacheEntry.path:[B
astore 4
start local 4 7: aload 4
invokestatic org.eclipse.jgit.dircache.BaseDirCacheEditor.lastSlash:([B)I
iconst_1
iadd
istore 5
start local 5 8: iload 2
iconst_1
iadd
istore 6
start local 6 9: goto 31
10: StackMap locals: byte[] int int
StackMap stack:
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entries:[Lorg/eclipse/jgit/dircache/DirCacheEntry;
iload 6
aaload
astore 7
start local 7 11: aload 7
invokevirtual org.eclipse.jgit.dircache.DirCacheEntry.getStage:()I
ifeq 13
12: goto 30
13: StackMap locals: org.eclipse.jgit.dircache.DirCacheEntry
StackMap stack:
aload 7
getfield org.eclipse.jgit.dircache.DirCacheEntry.path:[B
astore 8
start local 8 14: aload 4
aload 8
iload 5
invokestatic org.eclipse.jgit.dircache.BaseDirCacheEditor.startsWith:([B[BI)Z
ifne 16
15: goto 32
16: StackMap locals: byte[]
StackMap stack:
aload 8
iload 5
invokestatic org.eclipse.jgit.dircache.BaseDirCacheEditor.nextSlash:([BI)I
istore 9
start local 9 17: iload 9
aload 8
arraylength
if_icmpge 18
sipush 16384
goto 19
StackMap locals: int
StackMap stack:
18: aload 7
invokevirtual org.eclipse.jgit.dircache.DirCacheEntry.getRawMode:()I
StackMap locals:
StackMap stack: int
19: istore 10
start local 10 20: aload 4
iload 5
aload 4
arraylength
21: aload 8
iload 5
iload 9
iload 10
22: invokestatic org.eclipse.jgit.util.Paths.compareSameName:([BII[BIII)I
istore 11
start local 11 23: iload 11
ifge 25
24: goto 32
25: StackMap locals: int int
StackMap stack:
iload 11
ifne 30
26: new org.eclipse.jgit.errors.DirCacheNameConflictException
dup
27: aload 3
invokevirtual org.eclipse.jgit.dircache.DirCacheEntry.getPathString:()Ljava/lang/String;
28: aload 7
invokevirtual org.eclipse.jgit.dircache.DirCacheEntry.getPathString:()Ljava/lang/String;
29: invokespecial org.eclipse.jgit.errors.DirCacheNameConflictException.<init>:(Ljava/lang/String;Ljava/lang/String;)V
athrow
end local 11 end local 10 end local 9 end local 8 end local 7 30: StackMap locals: org.eclipse.jgit.dircache.BaseDirCacheEditor int int org.eclipse.jgit.dircache.DirCacheEntry byte[] int int
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
31: iload 6
aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.entryCnt:I
if_icmplt 10
end local 6 end local 5 end local 4 end local 3 32: StackMap locals: org.eclipse.jgit.dircache.BaseDirCacheEditor int int
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
33: iload 2
iload 1
if_icmplt 3
end local 2 34: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lorg/eclipse/jgit/dircache/BaseDirCacheEditor;
1 35 1 end I
2 34 2 eIdx I
4 32 3 e Lorg/eclipse/jgit/dircache/DirCacheEntry;
7 32 4 ePath [B
8 32 5 prefixLen I
9 32 6 nIdx I
11 30 7 n Lorg/eclipse/jgit/dircache/DirCacheEntry;
14 30 8 nPath [B
17 30 9 s I
20 30 10 m I
23 30 11 cmp I
private static int lastSlash(byte[]);
descriptor: ([B)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
arraylength
iconst_1
isub
istore 1
start local 1 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
baload
bipush 47
if_icmpne 4
3: iload 1
ireturn
4: StackMap locals:
StackMap stack:
iinc 1 -1
StackMap locals:
StackMap stack:
5: iload 1
ifge 2
end local 1 6: iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 path [B
1 6 1 i I
MethodParameters:
Name Flags
path
private static int nextSlash(byte[], int);
descriptor: ([BI)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
arraylength
istore 2
start local 2 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
baload
bipush 47
if_icmpne 4
3: iload 1
ireturn
4: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
5: iload 1
iload 2
if_icmplt 2
6: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 b [B
0 7 1 p I
1 7 2 n I
MethodParameters:
Name Flags
b
p
private static boolean startsWith(byte[], byte[], int);
descriptor: ([B[BI)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
arraylength
iload 2
if_icmpge 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iinc 2 -1
goto 6
3: StackMap locals:
StackMap stack:
aload 0
iload 2
baload
aload 1
iload 2
baload
if_icmpeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
iinc 2 -1
StackMap locals:
StackMap stack:
6: iload 2
ifge 3
7: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 a [B
0 8 1 b [B
0 8 2 n I
MethodParameters:
Name Flags
a
b
n
public boolean commit();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.eclipse.jgit.dircache.BaseDirCacheEditor.finish:()V
1: aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.cache:Lorg/eclipse/jgit/dircache/DirCache;
invokevirtual org.eclipse.jgit.dircache.DirCache.write:()V
2: aload 0
getfield org.eclipse.jgit.dircache.BaseDirCacheEditor.cache:Lorg/eclipse/jgit/dircache/DirCache;
invokevirtual org.eclipse.jgit.dircache.DirCache.commit:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jgit/dircache/BaseDirCacheEditor;
Exceptions:
throws java.io.IOException
}
SourceFile: "BaseDirCacheEditor.java"