Uses of Class
com.headius.invokebinder.Binder
Packages that use Binder
-
Uses of Binder in com.headius.invokebinder
Methods in com.headius.invokebinder that return BinderModifier and TypeMethodDescriptionBinder.append
(boolean value) Append to the argument list the given boolean value.Binder.append
(byte value) Append to the argument list the given byte value.Binder.append
(char value) Append to the argument list the given char value.Binder.append
(double value) Append to the argument list the given double value.Binder.append
(float value) Append to the argument list the given float value.Binder.append
(int value) Append to the argument list the given int value.Binder.append
(long value) Append to the argument list the given long value.Binder.append
(short value) Append to the argument list the given short value.Append to the argument list the given argument values with the specified types.Append to the argument list the given argument value with the specified type.Append to the argument list the given argument value(s).SmartBinder.binder()
Get the Binder instance associated with this SmartBinder.Cast the incoming arguments to the given MethodType.Binder.cast
(MethodType type) Cast the incoming arguments to the given MethodType.Binder.castVirtual
(Class<?> returnType, Class<?> firstType, Class<?>... restTypes) Cast the incoming arguments to the given MethodType.Binder.catchException
(Class<? extends Throwable> throwable, MethodHandle function) Catch the given exception type from the downstream chain and handle it with the given function.Box a range of incoming arguments into the given array type.Binder.collect
(int index, int count, Class<?> type, MethodHandle collector) Box a range of incoming arguments into the given array type using the given constructor to construct the array.Box all incoming arguments from the given position onward into the given array type.Binder.collect
(int index, Class<?> type, MethodHandle collector) Box all incoming arguments from the given position onward into the given array type.Convert the incoming arguments to the given MethodType.Binder.convert
(MethodType target) Convert the incoming arguments to the given MethodType.Binder.drop
(int index) Drop a single argument at the given index.Binder.drop
(int index, int count) Drop from the given index a number of arguments.Binder.dropAll()
Drop all arguments from this handle chainBinder.dropFirst()
Drop a single argument at the beginning of the argument list.Binder.dropFirst
(int count) Drop from the end of the argument list a number of arguments.Binder.dropLast()
Drop a single argument at the end of the argument list.Binder.dropLast
(int count) Drop from the end of the argument list a number of arguments.Binder.filter
(int index, MethodHandle... functions) Filter incoming arguments, from the given index, replacing each with the result of calling the associated function in the given list.Binder.filterForward
(int index, MethodHandle... functions) Filter incoming arguments, from the given index, replacing each with the result of calling the associated function in the given list.Binder.filterReturn
(MethodHandle function) Filter return value, using a function that produces the current return type from another type.Binder.fold
(MethodHandle function) Process the incoming arguments using the given handle, inserting the result as the first argument.Binder.foldStatic
(Class<?> target, String method) Process the incoming arguments by calling the given static method on the given class, inserting the result as the first argument.Binder.foldStatic
(MethodHandles.Lookup lookup, Class<?> target, String method) Process the incoming arguments by calling the given static method on the given class, inserting the result as the first argument.Binder.foldVirtual
(MethodHandles.Lookup lookup, String method) Process the incoming arguments by calling the given method on the first argument, inserting the result as the first argument.Binder.foldVirtual
(String method) Process the incoming arguments by calling the given method on the first argument, inserting the result as the first argument.Binder.foldVoid
(MethodHandle function) Process the incoming arguments using the given handle, leaving the argument list unmodified.static Binder
Construct a new Binder, starting from a given invokebinder.static Binder
Construct a new Binder using a return type.static Binder
Construct a new Binder using a return type and argument types.static Binder
Construct a new Binder using a return type and argument types.static Binder
Binder.from
(MethodHandles.Lookup lookup, Binder start) Construct a new Binder, starting from a given invokebinder.static Binder
Binder.from
(MethodHandles.Lookup lookup, Class<?> returnType) Construct a new Binder using a return type.static Binder
Binder.from
(MethodHandles.Lookup lookup, Class<?> returnType, Class<?>[] argTypes) Construct a new Binder using a return type and argument types.static Binder
Binder.from
(MethodHandles.Lookup lookup, Class<?> returnType, Class<?> argType0, Class<?>... argTypes) Construct a new Binder using a return type and argument types.static Binder
Binder.from
(MethodHandles.Lookup lookup, MethodType start) Construct a new Binder, starting from a given MethodType.static Binder
Binder.from
(MethodType start) Construct a new Binder, starting from a given MethodType.Binder.insert
(int index, boolean value) Insert at the given index the given boolean value.Binder.insert
(int index, byte value) Insert at the given index the given byte value.Binder.insert
(int index, char value) Insert at the given index the given char value.Binder.insert
(int index, double value) Insert at the given index the given double value.Binder.insert
(int index, float value) Insert at the given index the given float value.Binder.insert
(int index, int value) Insert at the given index the given int value.Binder.insert
(int index, long value) Insert at the given index the given long value.Binder.insert
(int index, short value) Insert at the given index the given short value.Insert at the given index the given argument value(s).Insert at the given index the given argument value.Insert at the given index the given argument value(s).Binder.logType()
Log the current MethodType as info.Binder.permute
(int... reorder) Permute the incoming arguments to a new sequence specified by the given values.Binder.prepend
(boolean value) Prepend to the argument list the given boolean value.Binder.prepend
(byte value) Prepend to the argument list the given byte value.Binder.prepend
(char value) Prepend to the argument list the given char value.Binder.prepend
(double value) Prepend to the argument list the given double value.Binder.prepend
(float value) Prepend to the argument list the given float value.Binder.prepend
(int value) Prepend to the argument list the given int value.Binder.prepend
(long value) Prepend to the argument list the given long value.Binder.prepend
(short value) Prepend to the argument list the given short value.Prepend to the argument list the given argument values with the specified types.Prepend to the argument list the given argument value with the specified typePrepend to the argument list the given argument value(s).Binder.printType()
Println the current MethodType to stdout.Binder.printType
(PrintStream ps) Println the current MethodType to the given stream.Binder.spread
(int count) Spread a trailing array argument into the given number of arguments of the type of the array.Spread a trailing array argument into the specified argument types.Join this binder to an existing one by applying its transformations after this one.Binder.tryFinally
(MethodHandle post) Apply transforms to run the given handle's logic as a "finally" block.Box all incoming arguments from the given position onward into the given array type.Binder.withLookup
(MethodHandles.Lookup lookup) Use an alternate java.lang.invoke.MethodHandles.Lookup as the default for any direct handles created.Methods in com.headius.invokebinder with parameters of type BinderModifier and TypeMethodDescriptionstatic Binder
Construct a new Binder, starting from a given invokebinder.static Binder
Binder.from
(MethodHandles.Lookup lookup, Binder start) Construct a new Binder, starting from a given invokebinder.Join this binder to an existing one by applying its transformations after this one.Constructors in com.headius.invokebinder with parameters of type BinderModifierConstructorDescriptionConstruct a new Binder using the given invokebinder.Construct a new Binder using the given invokebinder plus an additional transformBinder
(Binder source, Transform transform, MethodType type) Construct a new Binder using the given invokebinder plus an additional transform and current typeBinder
(MethodHandles.Lookup lookup, Binder source) Construct a new Binder using the given Lookup and invokebinder.