Index
All Classes and Interfaces|All Packages|Serialized Form
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.
- appendBooleans(boolean...) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given boolean values.
- appendBytes(byte...) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given byte values.
- appendChars(char...) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given char values.
- appendDoubles(double...) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given double values.
- appendFloats(float...) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given float values.
- appendInts(int...) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given int values.
- appendLongs(long...) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given long values.
- appendShorts(short...) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given short values.
- appendWithTypes(Object...) - Method in class com.headius.invokebinder.Binder
-
Append to the argument list the given argument type(s) and value(s), provided as (Class, value) pairs of arguments.
- 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.
- arrayLength() - Method in class com.headius.invokebinder.Binder
-
Get the length of an array.
- 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.
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.
- 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.
- 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.
- com.headius.invokebinder - package com.headius.invokebinder
- 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.
D
- 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.
- 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
- 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.
- 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.
- 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.
- 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
- 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.
- getField(String) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.getField(MethodHandles.Lookup, String)
but using the default lookup for this binder. - 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.
- getFieldQuiet(String) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.getFieldQuiet(MethodHandles.Lookup, String)
but using the default lookup for this binder. - getStatic(Class<?>, String) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.getStatic(MethodHandles.Lookup, Class, String)
but using the default lookup for this binder. - 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(Class<?>, String) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.getStaticQuiet(MethodHandles.Lookup, Class, String)
but using the default lookup for this binder. - 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.
- 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.
- invoke(Method) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.invoke(MethodHandles.Lookup, Method method)
but using the default lookup for this binder. - invokeConstructor(Class<?>) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.invokeConstructor(MethodHandles.Lookup, Class)
but using the default lookup for this binder. - 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(Class<?>) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.invokeConstructorQuiet(MethodHandles.Lookup, Class)
but using the default lookup for this binder. - 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.
- invokeQuiet(Method) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.invokeQuiet(MethodHandles.Lookup, Method method)
but using the default lookup for this binder. - 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.
- invokeSpecial(String, Class<?>) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.invokeSpecial(MethodHandles.Lookup, String, Class<?>)
but using the default lookup for this binder. - 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.
- invokeSpecialQuiet(String, Class<?>) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.invokeSpecialQuiet(MethodHandles.Lookup, String, Class)
but using the default lookup for this binder. - invokeStatic(Class<?>, String) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.invokeStaticQuiet(MethodHandles.Lookup, Class, String)
but using the default lookup for this binder. - 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(Class<?>, String) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.invokeStaticQuiet(MethodHandles.Lookup, Class, String)
but using the default lookup for this binder. - 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.
- invokeVirtual(String) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.invokeVirtual(MethodHandles.Lookup, String)
but using the default lookup for this binder. - 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.
- invokeVirtualQuiet(String) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.invokeVirtualQuiet(MethodHandles.Lookup, String)
but using the default lookup for this binder. - 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
- newArray() - Method in class com.headius.invokebinder.Binder
-
Construct a new array.
- 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.
- 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.
- prependBooleans(boolean...) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given boolean values.
- prependBytes(byte...) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given byte values.
- prependChars(char...) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given char values.
- prependDoubles(double...) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given double values.
- prependFloats(float...) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given float values.
- prependInts(int...) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given int values.
- prependLongs(long...) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given long values.
- prependShorts(short...) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given short values.
- prependWithTypes(Object...) - Method in class com.headius.invokebinder.Binder
-
Prepend to the argument list the given argument type(s) and value(s), provided as (Class, value) pairs of arguments.
- 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.
- setField(String) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.setField(MethodHandles.Lookup, String)
but using the default lookup for this binder. - 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.
- setFieldQuiet(String) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.setFieldQuiet(MethodHandles.Lookup, String)
but using the default lookup for this binder. - setStatic(Class<?>, String) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.setStatic(MethodHandles.Lookup, Class, String)
but using the default lookup for this binder. - 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(Class<?>, String) - Method in class com.headius.invokebinder.Binder
-
Same as
Binder.setStaticQuiet(MethodHandles.Lookup, Class, String)
but using the default lookup for this binder. - 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.
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.
- 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.
- 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
- 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
- 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.
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 and Interfaces|All Packages|Serialized Form