public abstract class org.junit.platform.commons.function.Try extends java.lang.Object
{
public static org.junit.platform.commons.function.Try call(java.util.concurrent.Callable)
{
java.util.concurrent.Callable v, v;
org.junit.platform.commons.function.Try v;
v := @parameter: java.util.concurrent.Callable;
staticinvoke <org.junit.platform.commons.function.Try: java.lang.Object checkNotNull(java.lang.Object,java.lang.String)>(v, "action");
v = staticinvoke <org.junit.platform.commons.function.Try$lambda_call_0__601: java.util.concurrent.Callable bootstrap$(java.util.concurrent.Callable)>(v);
v = staticinvoke <org.junit.platform.commons.function.Try: org.junit.platform.commons.function.Try of(java.util.concurrent.Callable)>(v);
return v;
}
public static org.junit.platform.commons.function.Try success(java.lang.Object)
{
java.lang.Object v;
org.junit.platform.commons.function.Try$Success v;
v := @parameter: java.lang.Object;
v = new org.junit.platform.commons.function.Try$Success;
specialinvoke v.<org.junit.platform.commons.function.Try$Success: void <init>(java.lang.Object)>(v);
return v;
}
public static org.junit.platform.commons.function.Try failure(java.lang.Exception)
{
org.junit.platform.commons.function.Try$Failure v;
java.lang.Object v;
java.lang.Exception v;
v := @parameter: java.lang.Exception;
v = new org.junit.platform.commons.function.Try$Failure;
v = staticinvoke <org.junit.platform.commons.function.Try: java.lang.Object checkNotNull(java.lang.Object,java.lang.String)>(v, "cause");
specialinvoke v.<org.junit.platform.commons.function.Try$Failure: void <init>(java.lang.Exception)>(v);
return v;
}
private static java.lang.Object checkNotNull(java.lang.Object, java.lang.String)
{
org.junit.platform.commons.JUnitException v;
java.lang.Object v;
java.lang.String v, v;
v := @parameter: java.lang.Object;
v := @parameter: java.lang.String;
if v != null goto label;
v = new org.junit.platform.commons.JUnitException;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u must not be null");
specialinvoke v.<org.junit.platform.commons.JUnitException: void <init>(java.lang.String)>(v);
throw v;
label:
return v;
}
private static org.junit.platform.commons.function.Try of(java.util.concurrent.Callable)
{
org.junit.platform.commons.function.Try v;
java.lang.Object v;
java.util.concurrent.Callable v;
java.lang.Exception v;
v := @parameter: java.util.concurrent.Callable;
label:
v = interfaceinvoke v.<java.util.concurrent.Callable: java.lang.Object call()>();
label:
return v;
label:
v := @caughtexception;
v = staticinvoke <org.junit.platform.commons.function.Try: org.junit.platform.commons.function.Try failure(java.lang.Exception)>(v);
return v;
catch java.lang.Exception from label to label with label;
}
private void <init>()
{
org.junit.platform.commons.function.Try v;
v := @this: org.junit.platform.commons.function.Try;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public abstract org.junit.platform.commons.function.Try andThenTry(org.junit.platform.commons.function.Try$Transformer);
public abstract org.junit.platform.commons.function.Try andThen(java.util.function.Function);
public abstract org.junit.platform.commons.function.Try orElseTry(java.util.concurrent.Callable);
public abstract org.junit.platform.commons.function.Try orElse(java.util.function.Supplier);
public abstract java.lang.Object get() throws java.lang.Exception;
public abstract java.lang.Object getOrThrow(java.util.function.Function) throws java.lang.Exception;
public abstract org.junit.platform.commons.function.Try ifSuccess(java.util.function.Consumer);
public abstract org.junit.platform.commons.function.Try ifFailure(java.util.function.Consumer);
public abstract java.util.Optional toOptional();
}