SmartHandle |
SmartHandle.apply(int index,
Object arg) |
Apply an argument into the handle at the given index, returning a new
SmartHandle.
|
SmartHandle |
SmartHandle.apply(String name,
Object arg) |
Apply an argument into the handle at the given name, returning a new
SmartHandle.
|
SmartHandle |
SmartHandle.applyLast(Object arg) |
Apply an argument into the handle at the end, returning a new
SmartHandle.
|
SmartHandle |
SmartBinder.arrayGet() |
Terminate this binder by setting an array element based on the current
signature.
|
SmartHandle |
SmartBinder.arraySet() |
Terminate this binder by getting an array element based on the current
signature.
|
SmartHandle |
SmartHandle.bindTo(Object obj) |
Bind the first argument of this SmartHandle to the given object,
returning a new adapted handle.
|
SmartHandle |
SmartHandle.cast(Signature incoming) |
Create a new SmartHandle that casts arguments from the given signature to
the current signature's type with the new argument names.
|
SmartHandle |
SmartHandle.cast(Class<?> returnType,
Class<?>... argTypes) |
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.
|
SmartHandle |
SmartHandle.cast(MethodType incoming) |
Create a new SmartHandle that casts arguments from the given type to
the current signature's type, using the same argument names.
|
SmartHandle |
SmartHandle.convert(Signature incoming) |
Create a new SmartHandle that converts arguments from the given signature to
the current signature's type with the new argument names.
|
SmartHandle |
SmartHandle.convert(Class<?> returnType,
Class<?>... argTypes) |
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.
|
SmartHandle |
SmartHandle.convert(MethodType incoming) |
Create a new SmartHandle that converts arguments from the given type to
the current signature's type, using the same argument names.
|
SmartHandle |
SmartHandle.drop(int index,
String newName,
Class<?> type) |
Drop an argument from the handle at the given index, returning a new
SmartHandle.
|
SmartHandle |
SmartHandle.drop(String beforeName,
String newName,
Class<?> type) |
Drop an argument name and type from the handle at the given index, returning a new
SmartHandle.
|
SmartHandle |
SmartHandle.dropLast(String newName,
Class<?> type) |
Drop an argument from the handle at the end, returning a new
SmartHandle.
|
static SmartHandle |
SmartHandle.findStaticQuiet(MethodHandles.Lookup lookup,
Class<?> target,
String name,
Signature signature) |
Create a new SmartHandle by performing a lookup on the given target class
for the given method name with the given signature.
|
static SmartHandle |
SmartHandle.from(Signature signature,
MethodHandle handle) |
Create a new SmartHandle from the given Signature and MethodHandle.
|
SmartHandle |
SmartHandle.guard(SmartHandle target,
SmartHandle fallback) |
Use this SmartHandle as a test to guard target and fallback handles.
|
SmartHandle |
SmartBinder.identity() |
Terminate this binder by returning its sole remaining argument.
|
SmartHandle |
SmartBinder.invoke(SmartHandle target) |
Terminate this binder by invoking the given target handle.
|
SmartHandle |
SmartBinder.invoke(MethodHandle target) |
Terminate this binder by invoking the given target handle.
|
SmartHandle |
SmartBinder.invoker() |
Produce a SmartHandle from this binder that invokes a leading
MethodHandle argument with the remaining arguments.
|
SmartHandle |
SmartBinder.invokeStatic(MethodHandles.Lookup lookup,
Class<?> target,
String name) |
Terminate this binder by looking up the named static method on the
given target type.
|
SmartHandle |
SmartBinder.invokeStaticQuiet(MethodHandles.Lookup lookup,
Class<?> target,
String name) |
Terminate this binder by looking up the named static method on the
given target type.
|
SmartHandle |
SmartBinder.invokeVirtual(MethodHandles.Lookup lookup,
String name) |
Terminate this binder by looking up the named virtual method on the
first argument's type.
|
SmartHandle |
SmartBinder.invokeVirtualQuiet(MethodHandles.Lookup lookup,
String name) |
Terminate this binder by looking up the named virtual method on the
first argument's type.
|
SmartHandle |
Signature.permuteWith(SmartHandle target) |
Produce a new SmartHandle by permuting this Signature's arguments to the
Signature of a target SmartHandle.
|
SmartHandle |
SmartHandle.returnValue(Class<?> type,
Object value) |
Replace the return value with the given value, performing no other
processing of the original value.
|