Class Catch
- java.lang.Object
-
- com.headius.invokebinder.transform.Transform
-
- com.headius.invokebinder.transform.Catch
-
public class Catch extends Transform
An exception-handling transform. Equivalent call: MethodHandles.catchException(MethodHandle, Class, MethodHandle).
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXCEPTION_HANDLER_JAVA
-
Constructor Summary
Constructors Constructor Description Catch(Class<? extends Throwable> throwable, MethodHandle function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodTypedown(MethodType type)Apply this transform downward from an incoming MethodType, producing a new type.StringtoJava(MethodType incoming)Return a Java code representation of this transform.StringtoString()Return a string representation of this transform.MethodHandleup(MethodHandle target)Apply this transform upward from the given MethodHandle, producing a new handle.-
Methods inherited from class com.headius.invokebinder.transform.Transform
buildClassArgument, buildClassArguments, buildClassCast, buildPrimitiveJava, generateMethodType
-
-
-
-
Field Detail
-
EXCEPTION_HANDLER_JAVA
public static final String EXCEPTION_HANDLER_JAVA
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Catch
public Catch(Class<? extends Throwable> throwable, MethodHandle function)
-
-
Method Detail
-
up
public MethodHandle up(MethodHandle target)
Description copied from class:TransformApply this transform upward from the given MethodHandle, producing a new handle.
-
down
public MethodType down(MethodType type)
Description copied from class:TransformApply this transform downward from an incoming MethodType, producing a new type.
-
toString
public String toString()
Description copied from class:TransformReturn a string representation of this transform.
-
toJava
public String toJava(MethodType incoming)
Description copied from class:TransformReturn a Java code representation of this transform.
-
-