Uses of Class
com.headius.invokebinder.Signature
Packages that use Signature
-
Uses of Signature in com.headius.invokebinder
Methods in com.headius.invokebinder that return SignatureModifier and TypeMethodDescriptionAppend an argument (name + type) to the signature.Signature.appendArgs
(String[] names, Class<?>... types) Append an argument (name + type) to the signature.Set the argument name at the given index.Set the argument type at the given index.Produce a new signature based on this one with a different return type.SmartBinder.baseSignature()
Get the signature this binder started with.Signature.changeReturn
(Class<?> retval) Create a new signature based on this one with a different return type.Collect sequential arguments matching pattern into an array.Signature.dropArg
(int index) Drops the argument at the given index.Drops the first argument with the given name.Signature.dropFirst()
Drop the first argument from this signature.Signature.dropFirst
(int n) Drop the specified number of first arguments from this signature.Signature.dropLast()
Drop the last argument from this signature.Signature.dropLast
(int n) Drop the specified number of last arguments from this signature.Create a new signature containing the same return value as this one, but omitting the specified arguments.static Signature
Create a new signature based on the given return value, argument types, and argument namesInsert an argument (name + type) into the signature.Insert an argument (name + type) into the signature before the argument with the given name.Signature.insertArgs
(int index, String[] names, Class<?>... types) Insert arguments (names + types) into the signature.Signature.insertArgs
(String beforeName, String[] names, Class<?>... types) Insert arguments (names + types) into the signature before the argument with the given name.Create a new signature containing the same return value as this one, but only the specified arguments.Signature.prependArg
(String name, Class<?> type) Prepend an argument (name + type) to the signature.Signature.prependArgs
(String[] names, Class<?>... types) Prepend arguments (names + types) to the signature.Signature.replaceArg
(String oldName, String newName, Class<?> newType) Replace the named argument with a new name and type.static Signature
Create a new signature returning the given type.SmartBinder.signature()
Get the current Signature for this binder.SmartHandle.signature()
Get the Signature of this SmartHandle.Spread the trailing [] argument into its component type assigning given names.Spread the trailing [] argument into its component type assigning given names.Spread the trailing [] argument into its component type assigning given names.Methods in com.headius.invokebinder with parameters of type SignatureModifier and TypeMethodDescriptionCast the incoming arguments to the types in the given signature.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 converts arguments from the given signature to the current signature's type with the new argument names.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 SmartBinder
Create a new SmartBinder from the given Signature.static SmartBinder
SmartBinder.from
(MethodHandles.Lookup lookup, Signature inbound) Create a new SmartBinder from the given Signature, using the given Lookup for any handle lookups.static SmartHandle
SmartHandle.from
(Signature signature, MethodHandle handle) Create a new SmartHandle from the given Signature and MethodHandle.Using the argument names and order in the target Signature, permute the arguments in this SmartBinder.int[]
Generate an array of argument offsets based on permuting this signature to the given signature.