Class TryFinally
java.lang.Object
com.headius.invokebinder.transform.Transform
com.headius.invokebinder.transform.TryFinally
An try-finally transform.
Equivalent call: A combination of folds and catches.
MethodHandle exceptionHandler = [drop exception and invoke post logic]
target = MethodHandles.catchException(target, Throwable.class, exceptionHandler)
target = MethodHandles.foldArguments(post, target)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondown(MethodType type) Apply this transform downward from an incoming MethodType, producing a new type.toString()Return a string representation of this transform.up(MethodHandle target) Apply this transform upward from the given MethodHandle, producing a new handle.
-
Field Details
-
post
-
-
Constructor Details
-
TryFinally
-
-
Method Details