Package org.revapi.java.spi
Class IgnoreCompletionFailures
- java.lang.Object
-
- org.revapi.java.spi.IgnoreCompletionFailures
-
public final class IgnoreCompletionFailures extends Object
A utility class to try to overcome theCompletionFailure
exceptions thrown from the Java compiler. Such exceptions "disappear" when the method is re-tried which this helper enables.- Since:
- 0.1
- Author:
- Lukas Krejci
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
IgnoreCompletionFailures.Fn0<R>
static interface
IgnoreCompletionFailures.Fn1<R,T>
static interface
IgnoreCompletionFailures.Fn2<R,T1,T2>
static interface
IgnoreCompletionFailures.Fn3<R,T1,T2,T3>
static interface
IgnoreCompletionFailures.VoidFn0
static interface
IgnoreCompletionFailures.VoidFn1<T>
static interface
IgnoreCompletionFailures.VoidFn2<T1,T2>
static interface
IgnoreCompletionFailures.VoidFn3<T1,T2,T3>
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <R> R
in(IgnoreCompletionFailures.Fn0<R> action)
static <R,T>
Rin(IgnoreCompletionFailures.Fn1<R,T> action, T arg)
static <R,T1,T2>
Rin(IgnoreCompletionFailures.Fn2<R,T1,T2> action, T1 arg1, T2 arg2)
static <R,T1,T2,T3>
Rin(IgnoreCompletionFailures.Fn3<R,T1,T2,T3> action, T1 arg1, T2 arg2, T3 arg3)
static void
inVoid(IgnoreCompletionFailures.VoidFn0 action)
static <T> void
inVoid(IgnoreCompletionFailures.VoidFn1<T> action, T arg)
static <T1,T2>
voidinVoid(IgnoreCompletionFailures.VoidFn2<T1,T2> action, T1 arg1, T2 arg2)
static <T1,T2,T3>
voidinVoid(IgnoreCompletionFailures.VoidFn3<T1,T2,T3> action, T1 arg1, T2 arg2, T3 arg3)
-
-
-
Method Detail
-
in
public static <R> R in(IgnoreCompletionFailures.Fn0<R> action)
-
inVoid
public static void inVoid(IgnoreCompletionFailures.VoidFn0 action)
-
in
public static <R,T> R in(IgnoreCompletionFailures.Fn1<R,T> action, T arg)
-
inVoid
public static <T> void inVoid(IgnoreCompletionFailures.VoidFn1<T> action, T arg)
-
in
public static <R,T1,T2> R in(IgnoreCompletionFailures.Fn2<R,T1,T2> action, T1 arg1, T2 arg2)
-
inVoid
public static <T1,T2> void inVoid(IgnoreCompletionFailures.VoidFn2<T1,T2> action, T1 arg1, T2 arg2)
-
in
public static <R,T1,T2,T3> R in(IgnoreCompletionFailures.Fn3<R,T1,T2,T3> action, T1 arg1, T2 arg2, T3 arg3)
-
inVoid
public static <T1,T2,T3> void inVoid(IgnoreCompletionFailures.VoidFn3<T1,T2,T3> action, T1 arg1, T2 arg2, T3 arg3)
-
-