Class FilterReturn
- java.lang.Object
-
- com.headius.invokebinder.transform.Transform
-
- com.headius.invokebinder.transform.FilterReturn
-
public class FilterReturn extends Transform
An return-filtering transform. Equivalent call: MethodHandles.filterReturn(MethodHandle, MethodHandle).
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.invoke.MethodHandle
function
-
Constructor Summary
Constructors Constructor Description FilterReturn(java.lang.invoke.MethodHandle function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.invoke.MethodType
down(java.lang.invoke.MethodType type)
Apply this transform downward from an incoming MethodType, producing a new type.java.lang.String
toString()
Return a string representation of this transform.java.lang.invoke.MethodHandle
up(java.lang.invoke.MethodHandle target)
Apply this transform upward from the given MethodHandle, producing a new handle.
-
-
-
Method Detail
-
up
public java.lang.invoke.MethodHandle up(java.lang.invoke.MethodHandle target)
Description copied from class:Transform
Apply this transform upward from the given MethodHandle, producing a new handle.
-
down
public java.lang.invoke.MethodType down(java.lang.invoke.MethodType type)
Description copied from class:Transform
Apply this transform downward from an incoming MethodType, producing a new type.
-
-