Uses of Class
com.headius.invokebinder.SmartHandle
Packages that use SmartHandle
-
Uses of SmartHandle in com.headius.invokebinder
Methods in com.headius.invokebinder that return SmartHandleModifier and TypeMethodDescriptionApply an argument into the handle at the given index, returning a new SmartHandle.Apply an argument into the handle at the given name, returning a new SmartHandle.Apply an argument into the handle at the end, returning a new SmartHandle.SmartBinder.arrayGet()
Terminate this binder by setting an array element based on the current signature.SmartBinder.arraySet()
Terminate this binder by getting an array element based on the current signature.Bind the first argument of this SmartHandle to the given object, returning a new adapted handle.Create a new SmartHandle that casts arguments from the given signature to the current signature's type with the new argument names.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.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.Create a new SmartHandle that converts arguments from the given signature to the current signature's type with the new argument names.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.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.Drop an argument from the handle at the given index, returning a new SmartHandle.Drop an argument name and type from the handle at the given index, returning a new SmartHandle.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.guard
(SmartHandle target, SmartHandle fallback) Use this SmartHandle as a test to guard target and fallback handles.SmartBinder.identity()
Terminate this binder by returning its sole remaining argument.SmartBinder.invoke
(SmartHandle target) Terminate this binder by invoking the given target handle.SmartBinder.invoke
(MethodHandle target) Terminate this binder by invoking the given target handle.SmartBinder.invoker()
Produce a SmartHandle from this binder that invokes a leading MethodHandle argument with the remaining arguments.SmartBinder.invokeStatic
(MethodHandles.Lookup lookup, Class<?> target, String name) Terminate this binder by looking up the named static method on the given target type.SmartBinder.invokeStaticQuiet
(MethodHandles.Lookup lookup, Class<?> target, String name) Terminate this binder by looking up the named static method on the given target type.SmartBinder.invokeVirtual
(MethodHandles.Lookup lookup, String name) Terminate this binder by looking up the named virtual method on the first argument's type.SmartBinder.invokeVirtualQuiet
(MethodHandles.Lookup lookup, String name) Terminate this binder by looking up the named virtual method on the first argument's type.Signature.permuteWith
(SmartHandle target) Produce a new SmartHandle by permuting this Signature's arguments to the Signature of a target SmartHandle.SmartHandle.returnValue
(Class<?> type, Object value) Replace the return value with the given value, performing no other processing of the original value.Methods in com.headius.invokebinder with parameters of type SmartHandleModifier and TypeMethodDescriptionSmartBinder.filterReturn
(SmartHandle filter) Use the given filter function to transform the return value at this point in the binder.SmartBinder.fold
(String newName, SmartHandle function) Pass all arguments to the given function and insert the resulting value as newName into the argument list.SmartBinder.foldVoid
(SmartHandle function) Pass all arguments to the given function and drop any result.SmartHandle.guard
(SmartHandle target, SmartHandle fallback) Use this SmartHandle as a test to guard target and fallback handles.SmartBinder.invoke
(SmartHandle target) Terminate this binder by invoking the given target handle.Signature.permuteWith
(SmartHandle target) Produce a new SmartHandle by permuting this Signature's arguments to the Signature of a target SmartHandle.