abstract class org.eclipse.jgit.hooks.GitHook<T> implements java.util.concurrent.Callable<T>
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: org.eclipse.jgit.hooks.GitHook
super_class: java.lang.Object
{
private final org.eclipse.jgit.lib.Repository repo;
descriptor: Lorg/eclipse/jgit/lib/Repository;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected final java.io.PrintStream outputStream;
descriptor: Ljava/io/PrintStream;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.io.PrintStream errorStream;
descriptor: Ljava/io/PrintStream;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected void <init>(org.eclipse.jgit.lib.Repository, java.io.PrintStream);
descriptor: (Lorg/eclipse/jgit/lib/Repository;Ljava/io/PrintStream;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
invokespecial org.eclipse.jgit.hooks.GitHook.<init>:(Lorg/eclipse/jgit/lib/Repository;Ljava/io/PrintStream;Ljava/io/PrintStream;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jgit/hooks/GitHook<TT;>;
0 2 1 repo Lorg/eclipse/jgit/lib/Repository;
0 2 2 outputStream Ljava/io/PrintStream;
MethodParameters:
Name Flags
repo
outputStream
protected void <init>(org.eclipse.jgit.lib.Repository, java.io.PrintStream, java.io.PrintStream);
descriptor: (Lorg/eclipse/jgit/lib/Repository;Ljava/io/PrintStream;Ljava/io/PrintStream;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.eclipse.jgit.hooks.GitHook.repo:Lorg/eclipse/jgit/lib/Repository;
2: aload 0
aload 2
putfield org.eclipse.jgit.hooks.GitHook.outputStream:Ljava/io/PrintStream;
3: aload 0
aload 3
putfield org.eclipse.jgit.hooks.GitHook.errorStream:Ljava/io/PrintStream;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jgit/hooks/GitHook<TT;>;
0 5 1 repo Lorg/eclipse/jgit/lib/Repository;
0 5 2 outputStream Ljava/io/PrintStream;
0 5 3 errorStream Ljava/io/PrintStream;
MethodParameters:
Name Flags
repo
outputStream
errorStream
public abstract T call();
descriptor: ()Ljava/lang/Object;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException, org.eclipse.jgit.api.errors.AbortedByHookException
Signature: ()TT;
public abstract java.lang.String getHookName();
descriptor: ()Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
protected org.eclipse.jgit.lib.Repository getRepository();
descriptor: ()Lorg/eclipse/jgit/lib/Repository;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jgit.hooks.GitHook.repo:Lorg/eclipse/jgit/lib/Repository;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jgit/hooks/GitHook<TT;>;
protected java.lang.String[] getParameters();
descriptor: ()[Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
anewarray java.lang.String
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jgit/hooks/GitHook<TT;>;
protected java.lang.String getStdinArgs();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jgit/hooks/GitHook<TT;>;
protected java.io.PrintStream getOutputStream();
descriptor: ()Ljava/io/PrintStream;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jgit.hooks.GitHook.outputStream:Ljava/io/PrintStream;
ifnonnull 1
getstatic java.lang.System.out:Ljava/io/PrintStream;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.eclipse.jgit.hooks.GitHook.outputStream:Ljava/io/PrintStream;
StackMap locals:
StackMap stack: java.io.PrintStream
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jgit/hooks/GitHook<TT;>;
protected java.io.PrintStream getErrorStream();
descriptor: ()Ljava/io/PrintStream;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jgit.hooks.GitHook.errorStream:Ljava/io/PrintStream;
ifnonnull 1
getstatic java.lang.System.err:Ljava/io/PrintStream;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.eclipse.jgit.hooks.GitHook.errorStream:Ljava/io/PrintStream;
StackMap locals:
StackMap stack: java.io.PrintStream
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jgit/hooks/GitHook<TT;>;
protected void doRun();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=7, args_size=1
start local 0 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 1
start local 1 1: new org.eclipse.jgit.util.io.TeeOutputStream
dup
aload 1
2: aload 0
invokevirtual org.eclipse.jgit.hooks.GitHook.getErrorStream:()Ljava/io/PrintStream;
3: invokespecial org.eclipse.jgit.util.io.TeeOutputStream.<init>:(Ljava/io/OutputStream;Ljava/io/OutputStream;)V
astore 2
start local 2 4: aconst_null
astore 3
start local 3 5: new java.io.PrintStream
dup
aload 2
iconst_0
6: getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
7: invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;ZLjava/lang/String;)V
astore 3
8: goto 10
StackMap locals: org.eclipse.jgit.hooks.GitHook java.io.ByteArrayOutputStream org.eclipse.jgit.util.io.TeeOutputStream java.io.PrintStream
StackMap stack: java.io.UnsupportedEncodingException
9: pop
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.eclipse.jgit.hooks.GitHook.getRepository:()Lorg/eclipse/jgit/lib/Repository;
astore 4
start local 4 11: aload 4
invokevirtual org.eclipse.jgit.lib.Repository.getFS:()Lorg/eclipse/jgit/util/FS;
astore 5
start local 5 12: aload 5
ifnonnull 14
13: getstatic org.eclipse.jgit.util.FS.DETECTED:Lorg/eclipse/jgit/util/FS;
astore 5
14: StackMap locals: org.eclipse.jgit.lib.Repository org.eclipse.jgit.util.FS
StackMap stack:
aload 5
aload 4
aload 0
invokevirtual org.eclipse.jgit.hooks.GitHook.getHookName:()Ljava/lang/String;
15: aload 0
invokevirtual org.eclipse.jgit.hooks.GitHook.getParameters:()[Ljava/lang/String;
aload 0
invokevirtual org.eclipse.jgit.hooks.GitHook.getOutputStream:()Ljava/io/PrintStream;
aload 3
16: aload 0
invokevirtual org.eclipse.jgit.hooks.GitHook.getStdinArgs:()Ljava/lang/String;
17: invokevirtual org.eclipse.jgit.util.FS.runHookIfPresent:(Lorg/eclipse/jgit/lib/Repository;Ljava/lang/String;[Ljava/lang/String;Ljava/io/PrintStream;Ljava/io/PrintStream;Ljava/lang/String;)Lorg/eclipse/jgit/util/ProcessResult;
astore 6
start local 6 18: aload 6
invokevirtual org.eclipse.jgit.util.ProcessResult.isExecutedWithError:()Z
ifeq 23
19: new org.eclipse.jgit.api.errors.AbortedByHookException
dup
20: new java.lang.String
dup
aload 1
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial java.lang.String.<init>:([BLjava/nio/charset/Charset;)V
21: aload 0
invokevirtual org.eclipse.jgit.hooks.GitHook.getHookName:()Ljava/lang/String;
aload 6
invokevirtual org.eclipse.jgit.util.ProcessResult.getExitCode:()I
22: invokespecial org.eclipse.jgit.api.errors.AbortedByHookException.<init>:(Ljava/lang/String;Ljava/lang/String;I)V
athrow
23: StackMap locals: org.eclipse.jgit.util.ProcessResult
StackMap stack:
return
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 24 0 this Lorg/eclipse/jgit/hooks/GitHook<TT;>;
1 24 1 errorByteArray Ljava/io/ByteArrayOutputStream;
4 24 2 stderrStream Lorg/eclipse/jgit/util/io/TeeOutputStream;
5 24 3 hookErrRedirect Ljava/io/PrintStream;
11 24 4 repository Lorg/eclipse/jgit/lib/Repository;
12 24 5 fs Lorg/eclipse/jgit/util/FS;
18 24 6 result Lorg/eclipse/jgit/util/ProcessResult;
Exception table:
from to target type
5 8 9 Class java.io.UnsupportedEncodingException
Exceptions:
throws org.eclipse.jgit.api.errors.AbortedByHookException
public boolean isNativeHookPresent();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.eclipse.jgit.hooks.GitHook.getRepository:()Lorg/eclipse/jgit/lib/Repository;
invokevirtual org.eclipse.jgit.lib.Repository.getFS:()Lorg/eclipse/jgit/util/FS;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: getstatic org.eclipse.jgit.util.FS.DETECTED:Lorg/eclipse/jgit/util/FS;
astore 1
3: StackMap locals: org.eclipse.jgit.util.FS
StackMap stack:
aload 1
aload 0
invokevirtual org.eclipse.jgit.hooks.GitHook.getRepository:()Lorg/eclipse/jgit/lib/Repository;
aload 0
invokevirtual org.eclipse.jgit.hooks.GitHook.getHookName:()Ljava/lang/String;
invokevirtual org.eclipse.jgit.util.FS.findHook:(Lorg/eclipse/jgit/lib/Repository;Ljava/lang/String;)Ljava/io/File;
ifnull 4
iconst_1
ireturn
StackMap locals:
StackMap stack:
4: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jgit/hooks/GitHook<TT;>;
1 5 1 fs Lorg/eclipse/jgit/util/FS;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/concurrent/Callable<TT;>;
SourceFile: "GitHook.java"