Class Insert
java.lang.Object
com.headius.invokebinder.transform.Transform
com.headius.invokebinder.transform.Insert
An argument insertion transform.
Equivalent call: MethodHandles.insertArguments(MethodHandle, int, Object...).
-
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.private Class[]
types()
up
(MethodHandle target) Apply this transform upward from the given MethodHandle, producing a new handle.
-
Field Details
-
position
private final int position -
types
-
values
-
-
Constructor Details
-
Insert
-
Insert
public Insert(int position, boolean value) -
Insert
public Insert(int position, byte value) -
Insert
public Insert(int position, short value) -
Insert
public Insert(int position, char value) -
Insert
public Insert(int position, int value) -
Insert
public Insert(int position, long value) -
Insert
public Insert(int position, float value) -
Insert
public Insert(int position, double value) -
Insert
-
-
Method Details
-
up
Description copied from class:Transform
Apply this transform upward from the given MethodHandle, producing a new handle. -
down
Description copied from class:Transform
Apply this transform downward from an incoming MethodType, producing a new type. -
toString
Description copied from class:Transform
Return a string representation of this transform. -
types
-