public class org.eclipse.jgit.api.AddNoteCommand extends org.eclipse.jgit.api.GitCommand<org.eclipse.jgit.notes.Note>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jgit.api.AddNoteCommand
super_class: org.eclipse.jgit.api.GitCommand
{
private org.eclipse.jgit.revwalk.RevObject id;
descriptor: Lorg/eclipse/jgit/revwalk/RevObject;
flags: (0x0002) ACC_PRIVATE
private java.lang.String message;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String notesRef;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
protected void <init>(org.eclipse.jgit.lib.Repository);
descriptor: (Lorg/eclipse/jgit/lib/Repository;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.eclipse.jgit.api.GitCommand.<init>:(Lorg/eclipse/jgit/lib/Repository;)V
1: aload 0
ldc "refs/notes/commits"
putfield org.eclipse.jgit.api.AddNoteCommand.notesRef:Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jgit/api/AddNoteCommand;
0 3 1 repo Lorg/eclipse/jgit/lib/Repository;
MethodParameters:
Name Flags
repo
public org.eclipse.jgit.notes.Note call();
descriptor: ()Lorg/eclipse/jgit/notes/Note;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=8, args_size=1
start local 0 0: aload 0
invokevirtual org.eclipse.jgit.api.AddNoteCommand.checkCallable:()V
1: invokestatic org.eclipse.jgit.notes.NoteMap.newEmptyMap:()Lorg/eclipse/jgit/notes/NoteMap;
astore 1
start local 1 2: aconst_null
astore 2
start local 2 3: aconst_null
astore 3
aconst_null
astore 4
4: new org.eclipse.jgit.revwalk.RevWalk
dup
aload 0
getfield org.eclipse.jgit.api.AddNoteCommand.repo:Lorg/eclipse/jgit/lib/Repository;
invokespecial org.eclipse.jgit.revwalk.RevWalk.<init>:(Lorg/eclipse/jgit/lib/Repository;)V
astore 5
start local 5 5: aload 0
getfield org.eclipse.jgit.api.AddNoteCommand.repo:Lorg/eclipse/jgit/lib/Repository;
invokevirtual org.eclipse.jgit.lib.Repository.newObjectInserter:()Lorg/eclipse/jgit/lib/ObjectInserter;
astore 6
start local 6 6: aload 0
getfield org.eclipse.jgit.api.AddNoteCommand.repo:Lorg/eclipse/jgit/lib/Repository;
aload 0
getfield org.eclipse.jgit.api.AddNoteCommand.notesRef:Ljava/lang/String;
invokevirtual org.eclipse.jgit.lib.Repository.findRef:(Ljava/lang/String;)Lorg/eclipse/jgit/lib/Ref;
astore 7
start local 7 7: aload 7
ifnull 10
8: aload 5
aload 7
invokeinterface org.eclipse.jgit.lib.Ref.getObjectId:()Lorg/eclipse/jgit/lib/ObjectId;
invokevirtual org.eclipse.jgit.revwalk.RevWalk.parseCommit:(Lorg/eclipse/jgit/lib/AnyObjectId;)Lorg/eclipse/jgit/revwalk/RevCommit;
astore 2
9: aload 5
invokevirtual org.eclipse.jgit.revwalk.RevWalk.getObjectReader:()Lorg/eclipse/jgit/lib/ObjectReader;
aload 2
invokestatic org.eclipse.jgit.notes.NoteMap.read:(Lorg/eclipse/jgit/lib/ObjectReader;Lorg/eclipse/jgit/revwalk/RevCommit;)Lorg/eclipse/jgit/notes/NoteMap;
astore 1
10: StackMap locals: org.eclipse.jgit.api.AddNoteCommand org.eclipse.jgit.notes.NoteMap org.eclipse.jgit.revwalk.RevCommit java.lang.Throwable java.lang.Throwable org.eclipse.jgit.revwalk.RevWalk org.eclipse.jgit.lib.ObjectInserter org.eclipse.jgit.lib.Ref
StackMap stack:
aload 1
aload 0
getfield org.eclipse.jgit.api.AddNoteCommand.id:Lorg/eclipse/jgit/revwalk/RevObject;
aload 0
getfield org.eclipse.jgit.api.AddNoteCommand.message:Ljava/lang/String;
aload 6
invokevirtual org.eclipse.jgit.notes.NoteMap.set:(Lorg/eclipse/jgit/lib/AnyObjectId;Ljava/lang/String;Lorg/eclipse/jgit/lib/ObjectInserter;)V
11: aload 0
getfield org.eclipse.jgit.api.AddNoteCommand.repo:Lorg/eclipse/jgit/lib/Repository;
aload 0
getfield org.eclipse.jgit.api.AddNoteCommand.notesRef:Ljava/lang/String;
aload 5
aload 1
aload 2
aload 6
12: ldc "Notes added by 'git notes add'"
13: invokestatic org.eclipse.jgit.api.AddNoteCommand.commitNoteMap:(Lorg/eclipse/jgit/lib/Repository;Ljava/lang/String;Lorg/eclipse/jgit/revwalk/RevWalk;Lorg/eclipse/jgit/notes/NoteMap;Lorg/eclipse/jgit/revwalk/RevCommit;Lorg/eclipse/jgit/lib/ObjectInserter;Ljava/lang/String;)V
14: aload 1
aload 0
getfield org.eclipse.jgit.api.AddNoteCommand.id:Lorg/eclipse/jgit/revwalk/RevObject;
invokevirtual org.eclipse.jgit.notes.NoteMap.getNote:(Lorg/eclipse/jgit/lib/AnyObjectId;)Lorg/eclipse/jgit/notes/Note;
15: aload 6
ifnull 16
aload 6
invokevirtual org.eclipse.jgit.lib.ObjectInserter.close:()V
StackMap locals:
StackMap stack: org.eclipse.jgit.notes.Note
16: aload 5
ifnull 17
aload 5
invokevirtual org.eclipse.jgit.revwalk.RevWalk.close:()V
17: StackMap locals:
StackMap stack: org.eclipse.jgit.notes.Note
areturn
end local 7 StackMap locals: org.eclipse.jgit.api.AddNoteCommand org.eclipse.jgit.notes.NoteMap org.eclipse.jgit.revwalk.RevCommit java.lang.Throwable java.lang.Throwable org.eclipse.jgit.revwalk.RevWalk org.eclipse.jgit.lib.ObjectInserter
StackMap stack: java.lang.Throwable
18: astore 3
19: aload 6
ifnull 20
aload 6
invokevirtual org.eclipse.jgit.lib.ObjectInserter.close:()V
end local 6 StackMap locals:
StackMap stack:
20: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
21: astore 4
aload 3
ifnonnull 22
aload 4
astore 3
goto 23
StackMap locals:
StackMap stack:
22: aload 3
aload 4
if_acmpeq 23
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
23: aload 5
ifnull 24
aload 5
invokevirtual org.eclipse.jgit.revwalk.RevWalk.close:()V
end local 5 StackMap locals:
StackMap stack:
24: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
25: astore 4
aload 3
ifnonnull 26
aload 4
astore 3
goto 27
StackMap locals:
StackMap stack:
26: aload 3
aload 4
if_acmpeq 27
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
27: aload 3
athrow
StackMap locals: org.eclipse.jgit.api.AddNoteCommand org.eclipse.jgit.notes.NoteMap org.eclipse.jgit.revwalk.RevCommit
StackMap stack: java.io.IOException
28: astore 3
start local 3 29: new org.eclipse.jgit.api.errors.JGitInternalException
dup
aload 3
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aload 3
invokespecial org.eclipse.jgit.api.errors.JGitInternalException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lorg/eclipse/jgit/api/AddNoteCommand;
2 30 1 map Lorg/eclipse/jgit/notes/NoteMap;
3 30 2 notesCommit Lorg/eclipse/jgit/revwalk/RevCommit;
5 24 5 walk Lorg/eclipse/jgit/revwalk/RevWalk;
6 20 6 inserter Lorg/eclipse/jgit/lib/ObjectInserter;
7 18 7 ref Lorg/eclipse/jgit/lib/Ref;
29 30 3 e Ljava/io/IOException;
Exception table:
from to target type
6 15 18 any
5 16 21 any
18 21 21 any
4 17 25 any
18 25 25 any
3 17 28 Class java.io.IOException
18 28 28 Class java.io.IOException
Exceptions:
throws org.eclipse.jgit.api.errors.GitAPIException
public org.eclipse.jgit.api.AddNoteCommand setObjectId(org.eclipse.jgit.revwalk.RevObject);
descriptor: (Lorg/eclipse/jgit/revwalk/RevObject;)Lorg/eclipse/jgit/api/AddNoteCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.eclipse.jgit.api.AddNoteCommand.checkCallable:()V
1: aload 0
aload 1
putfield org.eclipse.jgit.api.AddNoteCommand.id:Lorg/eclipse/jgit/revwalk/RevObject;
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jgit/api/AddNoteCommand;
0 3 1 id Lorg/eclipse/jgit/revwalk/RevObject;
MethodParameters:
Name Flags
id
public org.eclipse.jgit.api.AddNoteCommand setMessage(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/eclipse/jgit/api/AddNoteCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.eclipse.jgit.api.AddNoteCommand.checkCallable:()V
1: aload 0
aload 1
putfield org.eclipse.jgit.api.AddNoteCommand.message:Ljava/lang/String;
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jgit/api/AddNoteCommand;
0 3 1 message Ljava/lang/String;
MethodParameters:
Name Flags
message
static void commitNoteMap(org.eclipse.jgit.lib.Repository, java.lang.String, org.eclipse.jgit.revwalk.RevWalk, org.eclipse.jgit.notes.NoteMap, org.eclipse.jgit.revwalk.RevCommit, org.eclipse.jgit.lib.ObjectInserter, java.lang.String);
descriptor: (Lorg/eclipse/jgit/lib/Repository;Ljava/lang/String;Lorg/eclipse/jgit/revwalk/RevWalk;Lorg/eclipse/jgit/notes/NoteMap;Lorg/eclipse/jgit/revwalk/RevCommit;Lorg/eclipse/jgit/lib/ObjectInserter;Ljava/lang/String;)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=10, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: new org.eclipse.jgit.lib.CommitBuilder
dup
invokespecial org.eclipse.jgit.lib.CommitBuilder.<init>:()V
astore 7
start local 7 1: aload 7
aload 3
aload 5
invokevirtual org.eclipse.jgit.notes.NoteMap.writeTree:(Lorg/eclipse/jgit/lib/ObjectInserter;)Lorg/eclipse/jgit/lib/ObjectId;
invokevirtual org.eclipse.jgit.lib.CommitBuilder.setTreeId:(Lorg/eclipse/jgit/lib/AnyObjectId;)V
2: aload 7
new org.eclipse.jgit.lib.PersonIdent
dup
aload 0
invokespecial org.eclipse.jgit.lib.PersonIdent.<init>:(Lorg/eclipse/jgit/lib/Repository;)V
invokevirtual org.eclipse.jgit.lib.CommitBuilder.setAuthor:(Lorg/eclipse/jgit/lib/PersonIdent;)V
3: aload 7
aload 7
invokevirtual org.eclipse.jgit.lib.CommitBuilder.getAuthor:()Lorg/eclipse/jgit/lib/PersonIdent;
invokevirtual org.eclipse.jgit.lib.CommitBuilder.setCommitter:(Lorg/eclipse/jgit/lib/PersonIdent;)V
4: aload 7
aload 6
invokevirtual org.eclipse.jgit.lib.CommitBuilder.setMessage:(Ljava/lang/String;)V
5: aload 4
ifnull 7
6: aload 7
iconst_1
anewarray org.eclipse.jgit.lib.ObjectId
dup
iconst_0
aload 4
aastore
invokevirtual org.eclipse.jgit.lib.CommitBuilder.setParentIds:([Lorg/eclipse/jgit/lib/ObjectId;)V
7: StackMap locals: org.eclipse.jgit.lib.CommitBuilder
StackMap stack:
aload 5
aload 7
invokevirtual org.eclipse.jgit.lib.ObjectInserter.insert:(Lorg/eclipse/jgit/lib/CommitBuilder;)Lorg/eclipse/jgit/lib/ObjectId;
astore 8
start local 8 8: aload 5
invokevirtual org.eclipse.jgit.lib.ObjectInserter.flush:()V
9: aload 0
aload 1
invokevirtual org.eclipse.jgit.lib.Repository.updateRef:(Ljava/lang/String;)Lorg/eclipse/jgit/lib/RefUpdate;
astore 9
start local 9 10: aload 4
ifnull 12
11: aload 9
aload 4
invokevirtual org.eclipse.jgit.lib.RefUpdate.setExpectedOldObjectId:(Lorg/eclipse/jgit/lib/AnyObjectId;)V
goto 13
12: StackMap locals: org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.lib.RefUpdate
StackMap stack:
aload 9
invokestatic org.eclipse.jgit.lib.ObjectId.zeroId:()Lorg/eclipse/jgit/lib/ObjectId;
invokevirtual org.eclipse.jgit.lib.RefUpdate.setExpectedOldObjectId:(Lorg/eclipse/jgit/lib/AnyObjectId;)V
13: StackMap locals:
StackMap stack:
aload 9
aload 8
invokevirtual org.eclipse.jgit.lib.RefUpdate.setNewObjectId:(Lorg/eclipse/jgit/lib/AnyObjectId;)V
14: aload 9
aload 2
invokevirtual org.eclipse.jgit.lib.RefUpdate.update:(Lorg/eclipse/jgit/revwalk/RevWalk;)Lorg/eclipse/jgit/lib/RefUpdate$Result;
pop
15: return
end local 9 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 16 0 r Lorg/eclipse/jgit/lib/Repository;
0 16 1 ref Ljava/lang/String;
0 16 2 walk Lorg/eclipse/jgit/revwalk/RevWalk;
0 16 3 map Lorg/eclipse/jgit/notes/NoteMap;
0 16 4 notesCommit Lorg/eclipse/jgit/revwalk/RevCommit;
0 16 5 inserter Lorg/eclipse/jgit/lib/ObjectInserter;
0 16 6 msg Ljava/lang/String;
1 16 7 builder Lorg/eclipse/jgit/lib/CommitBuilder;
8 16 8 commit Lorg/eclipse/jgit/lib/ObjectId;
10 16 9 refUpdate Lorg/eclipse/jgit/lib/RefUpdate;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
r
ref
walk
map
notesCommit
inserter
msg
public org.eclipse.jgit.api.AddNoteCommand setNotesRef(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/eclipse/jgit/api/AddNoteCommand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.eclipse.jgit.api.AddNoteCommand.checkCallable:()V
1: aload 0
aload 1
putfield org.eclipse.jgit.api.AddNoteCommand.notesRef:Ljava/lang/String;
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jgit/api/AddNoteCommand;
0 3 1 notesRef Ljava/lang/String;
MethodParameters:
Name Flags
notesRef
public java.lang.Object call();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.eclipse.jgit.api.AddNoteCommand.call:()Lorg/eclipse/jgit/notes/Note;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws org.eclipse.jgit.api.errors.GitAPIException
}
Signature: Lorg/eclipse/jgit/api/GitCommand<Lorg/eclipse/jgit/notes/Note;>;
SourceFile: "AddNoteCommand.java"
InnerClasses:
public final Result = org.eclipse.jgit.lib.RefUpdate$Result of org.eclipse.jgit.lib.RefUpdate