Class Collect
java.lang.Object
com.headius.invokebinder.transform.Transform
com.headius.invokebinder.transform.Collect
An argument-boxing transform with a fixed incoming size.
Equivalent call: MethodHandle.asCollector(Class, int) or MethodHandles.collectArguments
-
Constructor Summary
ConstructorsConstructorDescriptionCollect(MethodType source, int index, int count, Class<?> arrayType) Collect(MethodType source, int index, int count, Class<?> arrayType, MethodHandle collector) Collect(MethodType source, int index, Class<?> arrayType) Collect(MethodType source, int index, Class<?> arrayType, MethodHandle collector) -
Method Summary
Modifier and TypeMethodDescriptiondown(MethodType type) Apply this transform downward from an incoming MethodType, producing a new type.toJava(MethodType incoming) Return a Java code representation of this transform.toString()Return a string representation of this transform.up(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
-
Constructor Details
-
Collect
-
Collect
-
Collect
-
Collect
-
-
Method Details
-
up
Description copied from class:TransformApply this transform upward from the given MethodHandle, producing a new handle. -
down
Description copied from class:TransformApply this transform downward from an incoming MethodType, producing a new type. -
toString
Description copied from class:TransformReturn a string representation of this transform. -
toJava
Description copied from class:TransformReturn a Java code representation of this transform.
-