A B C D E F G H I L N P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- append(boolean) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given boolean value.
- append(byte) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given byte value.
- append(char) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given char value.
- append(double) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given double value.
- append(float) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given float value.
- append(int) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given int value.
- append(long) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given long value.
- append(short) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given short value.
- append(Class<?>[], Object...) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given argument values with the specified types.
- append(Class<?>, Object) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given argument value with the specified type.
- append(Object...) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given argument value(s).
- append(String[], Class<?>[], Object...) - Method in class com.headius.invokebinder.SmartBinder
-
Append the given arguments to the argument list, assigning them the given names.
- append(String, boolean) - Method in class com.headius.invokebinder.SmartBinder
-
Append the given argument to the argument list, assigning it the given name.
- append(String, byte) - Method in class com.headius.invokebinder.SmartBinder
-
Append the given argument to the argument list, assigning it the given name.
- append(String, char) - Method in class com.headius.invokebinder.SmartBinder
-
Append the given argument to the argument list, assigning it the given name.
- append(String, double) - Method in class com.headius.invokebinder.SmartBinder
-
Append the given argument to the argument list, assigning it the given name.
- append(String, float) - Method in class com.headius.invokebinder.SmartBinder
-
Append the given argument to the argument list, assigning it the given name.
- append(String, int) - Method in class com.headius.invokebinder.SmartBinder
-
Append the given argument to the argument list, assigning it the given name.
- append(String, long) - Method in class com.headius.invokebinder.SmartBinder
-
Append the given argument to the argument list, assigning it the given name.
- append(String, short) - Method in class com.headius.invokebinder.SmartBinder
-
Append the given argument to the argument list, assigning it the given name.
- append(String, Class<?>, Object) - Method in class com.headius.invokebinder.SmartBinder
-
Append the given argument to the argument list, assigning it the given name.
- append(String, Object) - Method in class com.headius.invokebinder.SmartBinder
-
Append the given argument to the argument list, assigning it the given name.
- appendArg(String, Class<?>) - Method in class com.headius.invokebinder.Signature
-
Append an argument (name + type) to the signature.
- appendArgs(String[], Class<?>...) - Method in class com.headius.invokebinder.Signature
-
Append an argument (name + type) to the signature.
- apply(int, Object) - Method in class com.headius.invokebinder.SmartHandle
-
Apply an argument into the handle at the given index, returning a new SmartHandle.
- apply(String, Object) - Method in class com.headius.invokebinder.SmartHandle
-
Apply an argument into the handle at the given name, returning a new SmartHandle.
- applyLast(Object) - Method in class com.headius.invokebinder.SmartHandle
-
Apply an argument into the handle at the end, returning a new SmartHandle.
- argCount() - Method in class com.headius.invokebinder.Signature
-
The current argument count.
- argName(int) - Method in class com.headius.invokebinder.Signature
-
Retrieve the name of the argument at the given index.
- argName(int, String) - Method in class com.headius.invokebinder.Signature
-
Set the argument name at the given index.
- argNames() - Method in class com.headius.invokebinder.Signature
-
The current argument names for this signature.
- argOffset(String) - Method in class com.headius.invokebinder.Signature
-
Retrieve the offset of the given argument name in this signature's arguments.
- argOffsets(String) - Method in class com.headius.invokebinder.Signature
-
Retrieve the offset of the given argument name in this signature's arguments.
- argType(int) - Method in class com.headius.invokebinder.Signature
-
Get the argument type at the given index.
- argType(int, Class<?>) - Method in class com.headius.invokebinder.Signature
-
Set the argument type at the given index.
- arrayAccess(VarHandle.AccessMode) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to an array varhandle operation.
- arrayGet() - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to an array element get.
- arrayGet() - Method in class com.headius.invokebinder.SmartBinder
-
Terminate this binder by setting an array element based on the current signature.
- arrayGetAcquire() - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to an acquire-fenced array element get.
- arrayGetOpaque() - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to an opaque (no ordering guarantee) array element get.
- arrayGetVolatile() - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a volatile array element get.
- arraySet() - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to an array element set.
- arraySet() - Method in class com.headius.invokebinder.SmartBinder
-
Terminate this binder by getting an array element based on the current signature.
- arraySetAcquire() - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a release-fenced array element set.
- arraySetOpaque() - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to an opaque (no ordering guarantee) array element set.
- arraySetVolatile() - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a volatile array element set.
- asFold(Class<?>) - Method in class com.headius.invokebinder.Signature
-
Produce a new signature based on this one with a different return type.
B
- baseSignature() - Method in class com.headius.invokebinder.SmartBinder
-
Get the signature this binder started with.
- binder() - Method in class com.headius.invokebinder.SmartBinder
-
Get the Binder instance associated with this SmartBinder.
- Binder - Class in com.headius.invokebinder
-
The Binder class provides a DSL for building a chain of MethodHandles using various of the adaptations provided by java.lang.invoke.MethodHandles.
- Binder(Binder) - Constructor for class com.headius.invokebinder.Binder
-
Construct a new Binder using the given invokebinder.
- Binder(Binder, Transform) - Constructor for class com.headius.invokebinder.Binder
-
Construct a new Binder using the given invokebinder plus an additional transform
- Binder(Binder, Transform, MethodType) - Constructor for class com.headius.invokebinder.Binder
-
Construct a new Binder using the given invokebinder plus an additional transform and current type
- Binder(MethodHandles.Lookup, Binder) - Constructor for class com.headius.invokebinder.Binder
-
Construct a new Binder using the given Lookup and invokebinder.
- Binder(MethodHandles.Lookup, MethodType) - Constructor for class com.headius.invokebinder.Binder
-
Construct a new Binder, starting from a given Lookup and MethodType.
- Binder(MethodType) - Constructor for class com.headius.invokebinder.Binder
-
Construct a new Binder, starting from a given MethodType.
- bindTo(Object) - Method in class com.headius.invokebinder.SmartHandle
-
Bind the first argument of this SmartHandle to the given object, returning a new adapted handle.
- branch(MethodHandle, MethodHandle, MethodHandle) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a boolean branch as from java.lang.invoke.MethodHandles.guardWithTest.
- buildClassArgument(StringBuilder, Class) - Static method in class com.headius.invokebinder.transform.Transform
-
Build Java code to represent a single .class reference.
- buildClassArguments(StringBuilder, Class<?>[]) - Static method in class com.headius.invokebinder.transform.Transform
-
Build a list of argument type classes suitable for inserting into Java code.
- buildClassCast(StringBuilder, Class) - Static method in class com.headius.invokebinder.transform.Transform
-
Build Java code to represent a cast to the given type.
- buildPrimitiveJava(StringBuilder, Object) - Static method in class com.headius.invokebinder.transform.Transform
-
Build Java code to represent a literal primitive.
C
- cast(Signature) - Method in class com.headius.invokebinder.SmartBinder
-
Cast the incoming arguments to the types in the given signature.
- cast(Signature) - Method in class com.headius.invokebinder.SmartHandle
-
Create a new SmartHandle that casts arguments from the given signature to the current signature's type with the new argument names.
- cast(Class<?>, Class<?>...) - Method in class com.headius.invokebinder.Binder
-
Cast the incoming arguments to the given MethodType.
- cast(Class<?>, Class<?>...) - Method in class com.headius.invokebinder.SmartBinder
-
Cast the incoming arguments to the return and argument types given.
- cast(Class<?>, Class<?>...) - Method in class com.headius.invokebinder.SmartHandle
-
Create a new SmartHandle that casts arguments from the given return type and argument types to the current signature's type, using the same argument names.
- cast(MethodType) - Method in class com.headius.invokebinder.Binder
-
Cast the incoming arguments to the given MethodType.
- cast(MethodType) - Method in class com.headius.invokebinder.SmartHandle
-
Create a new SmartHandle that casts arguments from the given type to the current signature's type, using the same argument names.
- Cast - Class in com.headius.invokebinder.transform
-
A casting transform.
- Cast(MethodType) - Constructor for class com.headius.invokebinder.transform.Cast
- castArg(String, Class<?>) - Method in class com.headius.invokebinder.SmartBinder
-
Cast the named argument to the given type.
- castReturn(Class<?>) - Method in class com.headius.invokebinder.SmartBinder
-
Cast the return value to the given type.
- castVirtual(Class<?>, Class<?>, Class<?>...) - Method in class com.headius.invokebinder.Binder
-
Cast the incoming arguments to the given MethodType.
- castVirtual(Class<?>, Class<?>, Class<?>...) - Method in class com.headius.invokebinder.SmartBinder
-
Cast the incoming arguments to the return, first argument type, and remaining argument types.
- Catch - Class in com.headius.invokebinder.transform
-
An exception-handling transform.
- Catch(Class<? extends Throwable>, MethodHandle) - Constructor for class com.headius.invokebinder.transform.Catch
- catchException(Class<? extends Throwable>, MethodHandle) - Method in class com.headius.invokebinder.Binder
-
Catch the given exception type from the downstream chain and handle it with the given function.
- changeReturn(Class<?>) - Method in class com.headius.invokebinder.Signature
-
Create a new signature based on this one with a different return type.
- collect(int, int, Class<?>) - Method in class com.headius.invokebinder.Binder
-
Box a range of incoming arguments into the given array type.
- collect(int, int, Class<?>, MethodHandle) - Method in class com.headius.invokebinder.Binder
-
Box a range of incoming arguments into the given array type using the given constructor to construct the array.
- collect(int, Class<?>) - Method in class com.headius.invokebinder.Binder
-
Box all incoming arguments from the given position onward into the given array type.
- collect(int, Class<?>, MethodHandle) - Method in class com.headius.invokebinder.Binder
-
Box all incoming arguments from the given position onward into the given array type.
- collect(String, String) - Method in class com.headius.invokebinder.Signature
-
Collect sequential arguments matching pattern into an array.
- collect(String, String) - Method in class com.headius.invokebinder.SmartBinder
-
Collect arguments matching namePattern into an trailing array argument named outName.
- collect(String, String, MethodHandle) - Method in class com.headius.invokebinder.SmartBinder
-
Collect arguments matching namePattern into an trailing array argument named outName, using collector to construct the array object.
- Collect - Class in com.headius.invokebinder.transform
-
An argument-boxing transform with a fixed incoming size.
- Collect(MethodType, int, int, Class<?>) - Constructor for class com.headius.invokebinder.transform.Collect
- Collect(MethodType, int, int, Class<?>, MethodHandle) - Constructor for class com.headius.invokebinder.transform.Collect
- Collect(MethodType, int, Class<?>) - Constructor for class com.headius.invokebinder.transform.Collect
- Collect(MethodType, int, Class<?>, MethodHandle) - Constructor for class com.headius.invokebinder.transform.Collect
- com.headius.invokebinder - package com.headius.invokebinder
- com.headius.invokebinder.transform - package com.headius.invokebinder.transform
- constant(Object) - Method in class com.headius.invokebinder.Binder
-
Apply the tranforms, binding them to a constant value that will propagate back through the chain.
- convert(Signature) - Method in class com.headius.invokebinder.SmartHandle
-
Create a new SmartHandle that converts arguments from the given signature to the current signature's type with the new argument names.
- convert(Class<?>, Class<?>...) - Method in class com.headius.invokebinder.Binder
-
Convert the incoming arguments to the given MethodType.
- convert(Class<?>, Class<?>...) - Method in class com.headius.invokebinder.SmartHandle
-
Create a new SmartHandle that converts arguments from the given return type and argument types to the current signature's type, using the same argument names.
- convert(MethodType) - Method in class com.headius.invokebinder.Binder
-
Convert the incoming arguments to the given MethodType.
- convert(MethodType) - Method in class com.headius.invokebinder.SmartHandle
-
Create a new SmartHandle that converts arguments from the given type to the current signature's type, using the same argument names.
- Convert - Class in com.headius.invokebinder.transform
-
An argument conversion transform.
- Convert(MethodType) - Constructor for class com.headius.invokebinder.transform.Convert
D
- down(MethodType) - Method in class com.headius.invokebinder.transform.Cast
- down(MethodType) - Method in class com.headius.invokebinder.transform.Catch
- down(MethodType) - Method in class com.headius.invokebinder.transform.Collect
- down(MethodType) - Method in class com.headius.invokebinder.transform.Convert
- down(MethodType) - Method in class com.headius.invokebinder.transform.Drop
- down(MethodType) - Method in class com.headius.invokebinder.transform.Filter
- down(MethodType) - Method in class com.headius.invokebinder.transform.FilterReturn
- down(MethodType) - Method in class com.headius.invokebinder.transform.Fold
- down(MethodType) - Method in class com.headius.invokebinder.transform.Insert
- down(MethodType) - Method in class com.headius.invokebinder.transform.Permute
- down(MethodType) - Method in class com.headius.invokebinder.transform.Spread
- down(MethodType) - Method in class com.headius.invokebinder.transform.Transform
-
Apply this transform downward from an incoming MethodType, producing a new type.
- down(MethodType) - Method in class com.headius.invokebinder.transform.TryFinally
- down(MethodType) - Method in class com.headius.invokebinder.transform.Varargs
- drop(int) - Method in class com.headius.invokebinder.Binder
-
Drop a single argument at the given index.
- drop(int, int) - Method in class com.headius.invokebinder.Binder
-
Drop from the given index a number of arguments.
- drop(int, String, Class<?>) - Method in class com.headius.invokebinder.SmartHandle
-
Drop an argument from the handle at the given index, returning a new SmartHandle.
- drop(String) - Method in class com.headius.invokebinder.SmartBinder
-
Drop the argument with the given name.
- drop(String, String, Class<?>) - Method in class com.headius.invokebinder.SmartHandle
-
Drop an argument name and type from the handle at the given index, returning a new SmartHandle.
- Drop - Class in com.headius.invokebinder.transform
-
An argument drop transform.
- Drop(int, Class<?>...) - Constructor for class com.headius.invokebinder.transform.Drop
- dropAll() - Method in class com.headius.invokebinder.Binder
-
Drop all arguments from this handle chain
- dropArg(int) - Method in class com.headius.invokebinder.Signature
-
Drops the argument at the given index.
- dropArg(String) - Method in class com.headius.invokebinder.Signature
-
Drops the first argument with the given name.
- dropFirst() - Method in class com.headius.invokebinder.Binder
-
Drop a single argument at the beginning of the argument list.
- dropFirst() - Method in class com.headius.invokebinder.Signature
-
Drop the first argument from this signature.
- dropFirst() - Method in class com.headius.invokebinder.SmartBinder
-
Drop the first argument.
- dropFirst(int) - Method in class com.headius.invokebinder.Binder
-
Drop from the end of the argument list a number of arguments.
- dropFirst(int) - Method in class com.headius.invokebinder.Signature
-
Drop the specified number of first arguments from this signature.
- dropFirst(int) - Method in class com.headius.invokebinder.SmartBinder
-
Drop the first N arguments.
- dropLast() - Method in class com.headius.invokebinder.Binder
-
Drop a single argument at the end of the argument list.
- dropLast() - Method in class com.headius.invokebinder.Signature
-
Drop the last argument from this signature.
- dropLast() - Method in class com.headius.invokebinder.SmartBinder
-
Drop the last argument.
- dropLast(int) - Method in class com.headius.invokebinder.Binder
-
Drop from the end of the argument list a number of arguments.
- dropLast(int) - Method in class com.headius.invokebinder.Signature
-
Drop the specified number of last arguments from this signature.
- dropLast(int) - Method in class com.headius.invokebinder.SmartBinder
-
Drop the last N arguments.
- dropLast(String, Class<?>) - Method in class com.headius.invokebinder.SmartHandle
-
Drop an argument from the handle at the end, returning a new SmartHandle.
E
- equals(Object) - Method in class com.headius.invokebinder.Signature
- EXCEPTION_HANDLER_JAVA - Static variable in class com.headius.invokebinder.transform.Catch
- exclude(String...) - Method in class com.headius.invokebinder.Signature
-
Create a new signature containing the same return value as this one, but omitting the specified arguments.
- exclude(String...) - Method in class com.headius.invokebinder.SmartBinder
-
Permute all parameters except the names given.
F
- filter(int, MethodHandle...) - Method in class com.headius.invokebinder.Binder
-
Filter incoming arguments, from the given index, replacing each with the result of calling the associated function in the given list.
- filter(String, MethodHandle) - Method in class com.headius.invokebinder.SmartBinder
-
Filter the arguments matching the given pattern using the given filter function.
- Filter - Class in com.headius.invokebinder.transform
-
An argument-filtering transform.
- Filter(int, MethodHandle...) - Constructor for class com.headius.invokebinder.transform.Filter
- FILTER_FUNCTION_JAVA - Static variable in class com.headius.invokebinder.transform.FilterReturn
- FILTER_FUNCTIONS_JAVA - Static variable in class com.headius.invokebinder.transform.Filter
- filterForward(int, MethodHandle...) - Method in class com.headius.invokebinder.Binder
-
Filter incoming arguments, from the given index, replacing each with the result of calling the associated function in the given list.
- filterReturn(SmartHandle) - Method in class com.headius.invokebinder.SmartBinder
-
Use the given filter function to transform the return value at this point in the binder.
- filterReturn(MethodHandle) - Method in class com.headius.invokebinder.Binder
-
Filter return value, using a function that produces the current return type from another type.
- filterReturn(MethodHandle) - Method in class com.headius.invokebinder.SmartBinder
-
Use the given filter function to transform the return value at this point in the binder.
- FilterReturn - Class in com.headius.invokebinder.transform
-
An return-filtering transform.
- FilterReturn(MethodHandle) - Constructor for class com.headius.invokebinder.transform.FilterReturn
- findStaticQuiet(MethodHandles.Lookup, Class<?>, String, Signature) - Static method in class com.headius.invokebinder.SmartHandle
-
Create a new SmartHandle by performing a lookup on the given target class for the given method name with the given signature.
- firstArgName() - Method in class com.headius.invokebinder.Signature
-
Get the first argument name.
- firstArgType() - Method in class com.headius.invokebinder.Signature
-
Get the first argument type.
- fold(MethodHandle) - Method in class com.headius.invokebinder.Binder
-
Process the incoming arguments using the given handle, inserting the result as the first argument.
- fold(String, SmartHandle) - Method in class com.headius.invokebinder.SmartBinder
-
Pass all arguments to the given function and insert the resulting value as newName into the argument list.
- fold(String, MethodHandle) - Method in class com.headius.invokebinder.SmartBinder
-
Pass all arguments to the given function and insert the resulting value as newName into the argument list.
- Fold - Class in com.headius.invokebinder.transform
-
An argument-folding transform.
- Fold(MethodHandle) - Constructor for class com.headius.invokebinder.transform.Fold
- FOLD_FUNCTION_JAVA - Static variable in class com.headius.invokebinder.transform.Fold
- foldStatic(Class<?>, String) - Method in class com.headius.invokebinder.Binder
-
Process the incoming arguments by calling the given static method on the given class, inserting the result as the first argument.
- foldStatic(MethodHandles.Lookup, Class<?>, String) - Method in class com.headius.invokebinder.Binder
-
Process the incoming arguments by calling the given static method on the given class, inserting the result as the first argument.
- foldStatic(String, Class<?>, String) - Method in class com.headius.invokebinder.SmartBinder
-
Acquire a public static folding function from the given target class, using the given name.
- foldStatic(String, MethodHandles.Lookup, Class<?>, String) - Method in class com.headius.invokebinder.SmartBinder
-
Acquire a static folding function from the given target class, using the given name and Lookup.
- foldVirtual(MethodHandles.Lookup, String) - Method in class com.headius.invokebinder.Binder
-
Process the incoming arguments by calling the given method on the first argument, inserting the result as the first argument.
- foldVirtual(String) - Method in class com.headius.invokebinder.Binder
-
Process the incoming arguments by calling the given method on the first argument, inserting the result as the first argument.
- foldVirtual(String, MethodHandles.Lookup, String) - Method in class com.headius.invokebinder.SmartBinder
-
Acquire a virtual folding function from the first argument's class, using the given name and Lookup.
- foldVirtual(String, String) - Method in class com.headius.invokebinder.SmartBinder
-
Acquire a public virtual folding function from the first argument's class, using the given name and Lookup.
- foldVoid(SmartHandle) - Method in class com.headius.invokebinder.SmartBinder
-
Pass all arguments to the given function and drop any result.
- foldVoid(MethodHandle) - Method in class com.headius.invokebinder.Binder
-
Process the incoming arguments using the given handle, leaving the argument list unmodified.
- foldVoid(MethodHandle) - Method in class com.headius.invokebinder.SmartBinder
-
Pass all arguments to the given function and drop any result.
- from(Binder) - Static method in class com.headius.invokebinder.Binder
-
Construct a new Binder, starting from a given invokebinder.
- from(Signature) - Static method in class com.headius.invokebinder.SmartBinder
-
Create a new SmartBinder from the given Signature.
- from(Signature, MethodHandle) - Static method in class com.headius.invokebinder.SmartHandle
-
Create a new SmartHandle from the given Signature and MethodHandle.
- from(Class<?>) - Static method in class com.headius.invokebinder.Binder
-
Construct a new Binder using a return type.
- from(Class<?>, Class<?>[]) - Static method in class com.headius.invokebinder.Binder
-
Construct a new Binder using a return type and argument types.
- from(Class<?>, Class<?>[], String...) - Static method in class com.headius.invokebinder.Signature
-
Create a new signature based on the given return value, argument types, and argument names
- from(Class<?>, Class<?>, Class<?>...) - Static method in class com.headius.invokebinder.Binder
-
Construct a new Binder using a return type and argument types.
- from(Class<?>, String[], Class<?>...) - Static method in class com.headius.invokebinder.SmartBinder
-
Create a new SmartBinder from the given types and argument names.
- from(Class<?>, String, Class<?>) - Static method in class com.headius.invokebinder.SmartBinder
-
Create a new SmartBinder with from the given types and argument name.
- from(MethodHandles.Lookup, Binder) - Static method in class com.headius.invokebinder.Binder
-
Construct a new Binder, starting from a given invokebinder.
- from(MethodHandles.Lookup, Signature) - Static method in class com.headius.invokebinder.SmartBinder
-
Create a new SmartBinder from the given Signature, using the given Lookup for any handle lookups.
- from(MethodHandles.Lookup, Class<?>) - Static method in class com.headius.invokebinder.Binder
-
Construct a new Binder using a return type.
- from(MethodHandles.Lookup, Class<?>, Class<?>[]) - Static method in class com.headius.invokebinder.Binder
-
Construct a new Binder using a return type and argument types.
- from(MethodHandles.Lookup, Class<?>, Class<?>, Class<?>...) - Static method in class com.headius.invokebinder.Binder
-
Construct a new Binder using a return type and argument types.
- from(MethodHandles.Lookup, Class<?>, String[], Class<?>...) - Static method in class com.headius.invokebinder.SmartBinder
-
Create a new SmartBinder from the given types and argument names, using the given Lookup for any handle lookups.
- from(MethodHandles.Lookup, Class<?>, String, Class<?>) - Static method in class com.headius.invokebinder.SmartBinder
-
Create a new SmartBinder from the given types and argument name, using the given Lookup for any handle lookups.
- from(MethodHandles.Lookup, MethodType) - Static method in class com.headius.invokebinder.Binder
-
Construct a new Binder, starting from a given MethodType.
- from(MethodType) - Static method in class com.headius.invokebinder.Binder
-
Construct a new Binder, starting from a given MethodType.
G
- generateMethodType(MethodType) - Static method in class com.headius.invokebinder.transform.Transform
-
Build Java code appropriate for standing up the given MethodType.
- getField(MethodHandles.Lookup, String) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to an object field retrieval specified using the end signature plus the given class and name.
- getFieldQuiet(MethodHandles.Lookup, String) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to an object field retrieval specified using the end signature plus the given class and name.
- getStatic(MethodHandles.Lookup, Class<?>, String) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a static field retrieval specified using the end signature plus the given class and name.
- getStaticQuiet(MethodHandles.Lookup, Class<?>, String) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a static field retrieval specified using the end signature plus the given class and name.
- guard(SmartHandle, SmartHandle) - Method in class com.headius.invokebinder.SmartHandle
-
Use this SmartHandle as a test to guard target and fallback handles.
- guard(MethodHandle, MethodHandle) - Method in class com.headius.invokebinder.SmartHandle
-
Use this SmartHandle as a test to guard target and fallback handles.
H
- handle() - Method in class com.headius.invokebinder.SmartHandle
-
Get the MethodHandle of this SmartHandle.
- hashCode() - Method in class com.headius.invokebinder.Signature
I
- identity() - Method in class com.headius.invokebinder.Binder
-
Apply the tranforms, binding them to a handle that will simply return its sole argument as its return value.
- identity() - Method in class com.headius.invokebinder.SmartBinder
-
Terminate this binder by returning its sole remaining argument.
- insert(int, boolean) - Method in class com.headius.invokebinder.Binder
-
Insert at the given index the given boolean value.
- insert(int, byte) - Method in class com.headius.invokebinder.Binder
-
Insert at the given index the given byte value.
- insert(int, char) - Method in class com.headius.invokebinder.Binder
-
Insert at the given index the given char value.
- insert(int, double) - Method in class com.headius.invokebinder.Binder
-
Insert at the given index the given double value.
- insert(int, float) - Method in class com.headius.invokebinder.Binder
-
Insert at the given index the given float value.
- insert(int, int) - Method in class com.headius.invokebinder.Binder
-
Insert at the given index the given int value.
- insert(int, long) - Method in class com.headius.invokebinder.Binder
-
Insert at the given index the given long value.
- insert(int, short) - Method in class com.headius.invokebinder.Binder
-
Insert at the given index the given short value.
- insert(int, Class<?>[], Object...) - Method in class com.headius.invokebinder.Binder
-
Insert at the given index the given argument value(s).
- insert(int, Class<?>, Object) - Method in class com.headius.invokebinder.Binder
-
Insert at the given index the given argument value.
- insert(int, Object...) - Method in class com.headius.invokebinder.Binder
-
Insert at the given index the given argument value(s).
- insert(int, String[], Class<?>[], Object...) - Method in class com.headius.invokebinder.SmartBinder
-
Insert arguments into the argument list at the given index with the given names and values.
- insert(int, String, boolean) - Method in class com.headius.invokebinder.SmartBinder
-
Insert an argument into the argument list at the given index with the given name and value.
- insert(int, String, byte) - Method in class com.headius.invokebinder.SmartBinder
-
Insert an argument into the argument list at the given index with the given name and value.
- insert(int, String, char) - Method in class com.headius.invokebinder.SmartBinder
-
Insert an argument into the argument list at the given index with the given name and value.
- insert(int, String, double) - Method in class com.headius.invokebinder.SmartBinder
-
Insert an argument into the argument list at the given index with the given name and value.
- insert(int, String, float) - Method in class com.headius.invokebinder.SmartBinder
-
Insert an argument into the argument list at the given index with the given name and value.
- insert(int, String, int) - Method in class com.headius.invokebinder.SmartBinder
-
Insert an argument into the argument list at the given index with the given name and value.
- insert(int, String, long) - Method in class com.headius.invokebinder.SmartBinder
-
Insert an argument into the argument list at the given index with the given name and value.
- insert(int, String, short) - Method in class com.headius.invokebinder.SmartBinder
-
Insert an argument into the argument list at the given index with the given name and value.
- insert(int, String, Class<?>, Object) - Method in class com.headius.invokebinder.SmartBinder
-
Insert an argument into the argument list at the given index with the given name and value.
- insert(int, String, Object) - Method in class com.headius.invokebinder.SmartBinder
-
Insert an argument into the argument list at the given index with the given name and value.
- Insert - Class in com.headius.invokebinder.transform
-
An argument insertion transform.
- Insert(int, boolean) - Constructor for class com.headius.invokebinder.transform.Insert
- Insert(int, byte) - Constructor for class com.headius.invokebinder.transform.Insert
- Insert(int, char) - Constructor for class com.headius.invokebinder.transform.Insert
- Insert(int, double) - Constructor for class com.headius.invokebinder.transform.Insert
- Insert(int, float) - Constructor for class com.headius.invokebinder.transform.Insert
- Insert(int, int) - Constructor for class com.headius.invokebinder.transform.Insert
- Insert(int, long) - Constructor for class com.headius.invokebinder.transform.Insert
- Insert(int, short) - Constructor for class com.headius.invokebinder.transform.Insert
- Insert(int, Class<?>[], Object...) - Constructor for class com.headius.invokebinder.transform.Insert
- Insert(int, Object...) - Constructor for class com.headius.invokebinder.transform.Insert
- insertArg(int, String, Class<?>) - Method in class com.headius.invokebinder.Signature
-
Insert an argument (name + type) into the signature.
- insertArg(String, String, Class<?>) - Method in class com.headius.invokebinder.Signature
-
Insert an argument (name + type) into the signature before the argument with the given name.
- insertArgs(int, String[], Class<?>...) - Method in class com.headius.invokebinder.Signature
-
Insert arguments (names + types) into the signature.
- insertArgs(String, String[], Class<?>...) - Method in class com.headius.invokebinder.Signature
-
Insert arguments (names + types) into the signature before the argument with the given name.
- InvalidTransformException - Exception in com.headius.invokebinder
-
Exception raised when a Binder transform is not valid for the current signature.
- InvalidTransformException(Exception) - Constructor for exception com.headius.invokebinder.InvalidTransformException
- InvalidTransformException(String) - Constructor for exception com.headius.invokebinder.InvalidTransformException
- invoke(SmartHandle) - Method in class com.headius.invokebinder.SmartBinder
-
Terminate this binder by invoking the given target handle.
- invoke(MethodHandle) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms with the target method handle as the final endpoint.
- invoke(MethodHandle) - Method in class com.headius.invokebinder.SmartBinder
-
Terminate this binder by invoking the given target handle.
- invoke(MethodHandles.Lookup, Method) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a static method specified using the end signature plus the given class and method.
- invokeConstructor(MethodHandles.Lookup, Class<?>) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a constructor specified using the end signature plus the given class.
- invokeConstructorQuiet(MethodHandles.Lookup, Class<?>) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a constructor specified using the end signature plus the given class.
- invokeQuiet(MethodHandles.Lookup, Method) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a static method specified using the end signature plus the given class and method.
- invoker() - Method in class com.headius.invokebinder.Binder
-
Produce a MethodHandle that invokes its leading MethodHandle argument with the remaining arguments, returning the result.
- invoker() - Method in class com.headius.invokebinder.SmartBinder
-
Produce a SmartHandle from this binder that invokes a leading MethodHandle argument with the remaining arguments.
- invokeSpecial(MethodHandles.Lookup, String, Class<?>) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a special method specified using the end signature plus the given class and name.
- invokeSpecialQuiet(MethodHandles.Lookup, String, Class<?>) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a special method specified using the end signature plus the given class and name.
- invokeStatic(MethodHandles.Lookup, Class<?>, String) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a static method specified using the end signature plus the given class and name.
- invokeStatic(MethodHandles.Lookup, Class<?>, String) - Method in class com.headius.invokebinder.SmartBinder
-
Terminate this binder by looking up the named static method on the given target type.
- invokeStaticQuiet(MethodHandles.Lookup, Class<?>, String) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a static method specified using the end signature plus the given class and name.
- invokeStaticQuiet(MethodHandles.Lookup, Class<?>, String) - Method in class com.headius.invokebinder.SmartBinder
-
Terminate this binder by looking up the named static method on the given target type.
- invokeVirtual(MethodHandles.Lookup, String) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a virtual method specified using the end signature plus the given class and name.
- invokeVirtual(MethodHandles.Lookup, String) - Method in class com.headius.invokebinder.SmartBinder
-
Terminate this binder by looking up the named virtual method on the first argument's type.
- invokeVirtualQuiet(MethodHandles.Lookup, String) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to a virtual method specified using the end signature plus the given class and name.
- invokeVirtualQuiet(MethodHandles.Lookup, String) - Method in class com.headius.invokebinder.SmartBinder
-
Terminate this binder by looking up the named virtual method on the first argument's type.
- IS_JAVA9 - Static variable in class com.headius.invokebinder.Util
- isJava9() - Static method in class com.headius.invokebinder.Util
L
- lastArgName() - Method in class com.headius.invokebinder.Signature
-
Get the last argument name.
- lastArgType() - Method in class com.headius.invokebinder.Signature
-
Get the last argument type.
- logType() - Method in class com.headius.invokebinder.Binder
-
Log the current MethodType as info.
N
- nop() - Method in class com.headius.invokebinder.Binder
-
Apply all transforms to an endpoint that does absolutely nothing.
P
- permute(int...) - Method in class com.headius.invokebinder.Binder
-
Permute the incoming arguments to a new sequence specified by the given values.
- permute(Signature) - Method in class com.headius.invokebinder.SmartBinder
-
Using the argument names and order in the target Signature, permute the arguments in this SmartBinder.
- permute(String...) - Method in class com.headius.invokebinder.Signature
-
Create a new signature containing the same return value as this one, but only the specified arguments.
- permute(String...) - Method in class com.headius.invokebinder.SmartBinder
-
Using the argument names and order in the given targetNames, permute the arguments in this SmartBinder.
- Permute - Class in com.headius.invokebinder.transform
-
A permutation transform.
- Permute(MethodType, int...) - Constructor for class com.headius.invokebinder.transform.Permute
- permuteWith(SmartHandle) - Method in class com.headius.invokebinder.Signature
-
Produce a new SmartHandle by permuting this Signature's arguments to the Signature of a target SmartHandle.
- permuteWith(MethodHandle, String...) - Method in class com.headius.invokebinder.Signature
-
Produce a method handle permuting the arguments in this signature using the given permute arguments and targeting the given java.lang.invoke.MethodHandle.
- prepend(boolean) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given boolean value.
- prepend(byte) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given byte value.
- prepend(char) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given char value.
- prepend(double) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given double value.
- prepend(float) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given float value.
- prepend(int) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given int value.
- prepend(long) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given long value.
- prepend(short) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given short value.
- prepend(Class<?>[], Object...) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given argument values with the specified types.
- prepend(Class<?>, Object) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given argument value with the specified type
- prepend(Object...) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given argument value(s).
- prepend(String[], Class<?>[], Object...) - Method in class com.headius.invokebinder.SmartBinder
-
Prepend the given arguments to the argument list, assigning them the given name.
- prepend(String, boolean) - Method in class com.headius.invokebinder.SmartBinder
-
Prepend the given argument to the argument list, assigning it the given name.
- prepend(String, byte) - Method in class com.headius.invokebinder.SmartBinder
-
Prepend the given argument to the argument list, assigning it the given name.
- prepend(String, char) - Method in class com.headius.invokebinder.SmartBinder
-
Prepend the given argument to the argument list, assigning it the given name.
- prepend(String, double) - Method in class com.headius.invokebinder.SmartBinder
-
Prepend the given argument to the argument list, assigning it the given name.
- prepend(String, float) - Method in class com.headius.invokebinder.SmartBinder
-
Prepend the given argument to the argument list, assigning it the given name.
- prepend(String, int) - Method in class com.headius.invokebinder.SmartBinder
-
Prepend the given argument to the argument list, assigning it the given name.
- prepend(String, long) - Method in class com.headius.invokebinder.SmartBinder
-
Prepend the given argument to the argument list, assigning it the given name.
- prepend(String, short) - Method in class com.headius.invokebinder.SmartBinder
-
Prepend the given argument to the argument list, assigning it the given name.
- prepend(String, Class<?>, Object) - Method in class com.headius.invokebinder.SmartBinder
-
Prepend the given argument to the argument list, assigning it the given name.
- prepend(String, Object) - Method in class com.headius.invokebinder.SmartBinder
-
Prepend the given argument to the argument list, assigning it the given name.
- prependArg(String, Class<?>) - Method in class com.headius.invokebinder.Signature
-
Prepend an argument (name + type) to the signature.
- prependArgs(String[], Class<?>...) - Method in class com.headius.invokebinder.Signature
-
Prepend arguments (names + types) to the signature.
- printSignature() - Method in class com.headius.invokebinder.SmartBinder
-
Print this binder's current signature to System.out.
- printSignature(PrintStream) - Method in class com.headius.invokebinder.SmartBinder
-
Print this binder's current signature to the give PrintStream.
- printType() - Method in class com.headius.invokebinder.Binder
-
Println the current MethodType to stdout.
- printType(PrintStream) - Method in class com.headius.invokebinder.Binder
-
Println the current MethodType to the given stream.
R
- replaceArg(String, String, Class<?>) - Method in class com.headius.invokebinder.Signature
-
Replace the named argument with a new name and type.
- returning(Class<?>) - Static method in class com.headius.invokebinder.Signature
-
Create a new signature returning the given type.
- returnValue(Class<?>, Object) - Method in class com.headius.invokebinder.SmartHandle
-
Replace the return value with the given value, performing no other processing of the original value.
S
- setField(MethodHandles.Lookup, String) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to an object field assignment specified using the end signature plus the given class and name.
- setFieldQuiet(MethodHandles.Lookup, String) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to an object field assignment specified using the end signature plus the given class and name.
- setStatic(MethodHandles.Lookup, Class<?>, String) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to an object field assignment specified using the end signature plus the given class and name.
- setStaticQuiet(MethodHandles.Lookup, Class<?>, String) - Method in class com.headius.invokebinder.Binder
-
Apply the chain of transforms and bind them to an object field assignment specified using the end signature plus the given class and name.
- signature() - Method in class com.headius.invokebinder.SmartBinder
-
Get the current Signature for this binder.
- signature() - Method in class com.headius.invokebinder.SmartHandle
-
Get the Signature of this SmartHandle.
- Signature - Class in com.headius.invokebinder
-
Signature represents a series of method arguments plus their symbolic names.
- SmartBinder - Class in com.headius.invokebinder
-
Maintains both a Binder, for building a series of transformations, and a current Signature that maps symbolic names to arguments.
- SmartHandle - Class in com.headius.invokebinder
-
A tuple of a Signature and a java.lang.invoke.MethodHandle, providing features of both plus a number of MethodHandles.* methods in a simpler form.
- spread(int) - Method in class com.headius.invokebinder.Binder
-
Spread a trailing array argument into the given number of arguments of the type of the array.
- spread(Class<?>...) - Method in class com.headius.invokebinder.Binder
-
Spread a trailing array argument into the specified argument types.
- spread(String...) - Method in class com.headius.invokebinder.Signature
-
Spread the trailing [] argument into its component type assigning given names.
- spread(String[], Class<?>...) - Method in class com.headius.invokebinder.Signature
-
Spread the trailing [] argument into its component type assigning given names.
- spread(String[], Class<?>...) - Method in class com.headius.invokebinder.SmartBinder
-
Spread a trailing array into the specified argument types.
- spread(String, int) - Method in class com.headius.invokebinder.Signature
-
Spread the trailing [] argument into its component type assigning given names.
- spread(String, int) - Method in class com.headius.invokebinder.SmartBinder
-
Spread a trailing array into count number of arguments, using the natural component type for the array.
- Spread - Class in com.headius.invokebinder.transform
-
An array-spreading transform.
- Spread(MethodType, Class<?>...) - Constructor for class com.headius.invokebinder.transform.Spread
T
- throwException() - Method in class com.headius.invokebinder.Binder
-
Throw the current signature's sole Throwable argument.
- to(Binder) - Method in class com.headius.invokebinder.Binder
-
Join this binder to an existing one by applying its transformations after this one.
- to(Signature) - Method in class com.headius.invokebinder.Signature
-
Generate an array of argument offsets based on permuting this signature to the given signature.
- to(String...) - Method in class com.headius.invokebinder.Signature
-
Generate an array of argument offsets based on permuting this signature to the given signature.
- toJava(MethodType) - Method in class com.headius.invokebinder.Binder
-
Produce Java code that would perform equivalent operations to this binder.
- toJava(MethodType) - Method in class com.headius.invokebinder.transform.Cast
- toJava(MethodType) - Method in class com.headius.invokebinder.transform.Catch
- toJava(MethodType) - Method in class com.headius.invokebinder.transform.Collect
- toJava(MethodType) - Method in class com.headius.invokebinder.transform.Convert
- toJava(MethodType) - Method in class com.headius.invokebinder.transform.Drop
- toJava(MethodType) - Method in class com.headius.invokebinder.transform.Filter
- toJava(MethodType) - Method in class com.headius.invokebinder.transform.FilterReturn
- toJava(MethodType) - Method in class com.headius.invokebinder.transform.Fold
- toJava(MethodType) - Method in class com.headius.invokebinder.transform.Insert
- toJava(MethodType) - Method in class com.headius.invokebinder.transform.Permute
- toJava(MethodType) - Method in class com.headius.invokebinder.transform.Spread
- toJava(MethodType) - Method in class com.headius.invokebinder.transform.Transform
-
Return a Java code representation of this transform.
- toJava(MethodType) - Method in class com.headius.invokebinder.transform.TryFinally
- toJava(MethodType) - Method in class com.headius.invokebinder.transform.Varargs
- toString() - Method in class com.headius.invokebinder.Signature
-
Produce a human-readable representation of this signature.
- toString() - Method in class com.headius.invokebinder.SmartHandle
-
A human-readable String representation of this SamrtHandle.
- toString() - Method in class com.headius.invokebinder.transform.Cast
- toString() - Method in class com.headius.invokebinder.transform.Catch
- toString() - Method in class com.headius.invokebinder.transform.Collect
- toString() - Method in class com.headius.invokebinder.transform.Convert
- toString() - Method in class com.headius.invokebinder.transform.Drop
- toString() - Method in class com.headius.invokebinder.transform.Filter
- toString() - Method in class com.headius.invokebinder.transform.FilterReturn
- toString() - Method in class com.headius.invokebinder.transform.Fold
- toString() - Method in class com.headius.invokebinder.transform.Insert
- toString() - Method in class com.headius.invokebinder.transform.Permute
- toString() - Method in class com.headius.invokebinder.transform.Spread
- toString() - Method in class com.headius.invokebinder.transform.Transform
-
Return a string representation of this transform.
- toString() - Method in class com.headius.invokebinder.transform.TryFinally
- toString() - Method in class com.headius.invokebinder.transform.Varargs
- Transform - Class in com.headius.invokebinder.transform
-
Abstract reprensentation of some handle transform.
- Transform() - Constructor for class com.headius.invokebinder.transform.Transform
- tryFinally(MethodHandle) - Method in class com.headius.invokebinder.Binder
-
Apply transforms to run the given handle's logic as a "finally" block.
- tryFinally(MethodHandle) - Method in class com.headius.invokebinder.SmartBinder
- TryFinally - Class in com.headius.invokebinder.transform
-
An try-finally transform.
- TryFinally(MethodHandle) - Constructor for class com.headius.invokebinder.transform.TryFinally
- type() - Method in class com.headius.invokebinder.Binder
-
The current MethodType, were the handle chain to terminate at this point.
- type() - Method in class com.headius.invokebinder.Signature
-
The current java.lang.invoke.MethodType for this Signature.
U
- up(MethodHandle) - Method in class com.headius.invokebinder.transform.Cast
- up(MethodHandle) - Method in class com.headius.invokebinder.transform.Catch
- up(MethodHandle) - Method in class com.headius.invokebinder.transform.Collect
- up(MethodHandle) - Method in class com.headius.invokebinder.transform.Convert
- up(MethodHandle) - Method in class com.headius.invokebinder.transform.Drop
- up(MethodHandle) - Method in class com.headius.invokebinder.transform.Filter
- up(MethodHandle) - Method in class com.headius.invokebinder.transform.FilterReturn
- up(MethodHandle) - Method in class com.headius.invokebinder.transform.Fold
- up(MethodHandle) - Method in class com.headius.invokebinder.transform.Insert
- up(MethodHandle) - Method in class com.headius.invokebinder.transform.Permute
- up(MethodHandle) - Method in class com.headius.invokebinder.transform.Spread
- up(MethodHandle) - Method in class com.headius.invokebinder.transform.Transform
-
Apply this transform upward from the given MethodHandle, producing a new handle.
- up(MethodHandle) - Method in class com.headius.invokebinder.transform.TryFinally
- up(MethodHandle) - Method in class com.headius.invokebinder.transform.Varargs
- Util - Class in com.headius.invokebinder
-
Utilities used by InvokeBinder classes.
- Util() - Constructor for class com.headius.invokebinder.Util
V
- varargs(int, Class<?>) - Method in class com.headius.invokebinder.Binder
-
Box all incoming arguments from the given position onward into the given array type.
- Varargs - Class in com.headius.invokebinder.transform
-
An argument-boxing transform.
- Varargs(MethodType, int, Class<?>) - Constructor for class com.headius.invokebinder.transform.Varargs
W
- withLookup(MethodHandles.Lookup) - Method in class com.headius.invokebinder.Binder
-
Use an alternate java.lang.invoke.MethodHandles.Lookup as the default for any direct handles created.
All Classes All Packages