Class Filter
- java.lang.Object
-
- com.headius.invokebinder.transform.Transform
-
- com.headius.invokebinder.transform.Filter
-
public class Filter extends Transform
An argument-filtering transform. Equivalent call: MethodHandles.filterArguments(MethodHandle, int, MethodHandle...).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FILTER_FUNCTIONS_JAVA
-
Constructor Summary
Constructors Constructor Description Filter(int index, java.lang.invoke.MethodHandle... functions)
-
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
toJava(java.lang.invoke.MethodType incoming)
Return a Java code representation of this transform.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.-
Methods inherited from class com.headius.invokebinder.transform.Transform
buildClassArgument, buildClassArguments, buildClassCast, buildPrimitiveJava, generateMethodType
-
-
-
-
Field Detail
-
FILTER_FUNCTIONS_JAVA
public static final java.lang.String FILTER_FUNCTIONS_JAVA
- See Also:
- Constant Field Values
-
-
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.
-
toString
public java.lang.String toString()
Description copied from class:Transform
Return a string representation of this transform.
-
-