| Package | Description |
|---|---|
| com.headius.invokebinder |
| Modifier and Type | Field and Description |
|---|---|
private Signature |
SmartHandle.signature
The signature associated with this smart handle
|
private Signature |
SmartBinder.start |
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Signature> |
SmartBinder.signatures |
| Modifier and Type | Method and Description |
|---|---|
Signature |
Signature.appendArg(java.lang.String name,
java.lang.Class type)
Append an argument (name + type) to the signature.
|
Signature |
Signature.appendArgs(java.lang.String[] names,
java.lang.Class... types)
Append an argument (name + type) to the signature.
|
Signature |
Signature.asFold(java.lang.Class retval)
Produce a new signature based on this one with a different return type.
|
Signature |
Signature.changeReturn(java.lang.Class retval)
Create a new signature based on this one with a different return type.
|
Signature |
Signature.dropArg(int index)
Drops the argument at the given index.
|
Signature |
Signature.dropArg(java.lang.String name)
Drops the first argument with the given name.
|
Signature |
Signature.dropFirst()
Drop the first argument from this signature.
|
Signature |
Signature.dropLast()
Drop the last argument from this signature.
|
Signature |
Signature.exclude(java.lang.String... excludeArgs)
Create a new signature containing the same return value as this one, but
omitting the specified arguments.
|
Signature |
Signature.insertArg(int index,
java.lang.String name,
java.lang.Class type)
Insert an argument (name + type) into the signature.
|
Signature |
Signature.insertArg(java.lang.String beforeName,
java.lang.String name,
java.lang.Class type)
Insert an argument (name + type) into the signature before the argument
with the given name.
|
Signature |
Signature.insertArgs(int index,
java.lang.String[] names,
java.lang.Class... types)
Insert arguments (names + types) into the signature.
|
Signature |
Signature.insertArgs(java.lang.String beforeName,
java.lang.String[] names,
java.lang.Class... types)
Insert arguments (names + types) into the signature before the argument
with the given name.
|
Signature |
Signature.permute(java.lang.String... permuteArgs)
Create a new signature containing the same return value as this one, but
only the specified arguments.
|
Signature |
Signature.prependArg(java.lang.String name,
java.lang.Class type)
Prepend an argument (name + type) to the signature.
|
Signature |
Signature.prependArgs(java.lang.String[] names,
java.lang.Class[] types)
Prepend an argument (name + type) to the signature.
|
Signature |
Signature.replaceArg(java.lang.String oldName,
java.lang.String newName,
java.lang.Class newType)
Replace the named argument with a new name and type.
|
static Signature |
Signature.returning(java.lang.Class retval)
Create a new signature returning the given type.
|
Signature |
SmartBinder.signature() |
Signature |
SmartHandle.signature()
Get the Signature of this SmartHandle.
|
Signature |
Signature.spread(java.lang.String... names)
Spread the trailing [] argument into its component type assigning given names.
|
Signature |
Signature.spread(java.lang.String[] names,
java.lang.Class... types)
Spread the trailing [] argument into the given argument types
|
Signature |
Signature.spread(java.lang.String baseName,
int count)
Spread the trailing [] argument into its component type assigning given names.
|
| Modifier and Type | Method and Description |
|---|---|
SmartBinder |
SmartBinder.cast(Signature target) |
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.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.
|
static SmartHandle |
SmartHandle.findStaticQuiet(java.lang.invoke.MethodHandles.Lookup lookup,
java.lang.Class target,
java.lang.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 |
SmartBinder.from(java.lang.invoke.MethodHandles.Lookup lookup,
Signature inbound) |
static SmartBinder |
SmartBinder.from(Signature inbound) |
static SmartHandle |
SmartHandle.from(Signature signature,
java.lang.invoke.MethodHandle handle)
Create a new SmartHandle from the given Signature and MethodHandle.
|
SmartBinder |
SmartBinder.permute(Signature target) |
int[] |
Signature.to(Signature other)
Generate an array of argument offsets based on permuting this signature
to the given signature.
|
| Constructor and Description |
|---|
SmartBinder(Signature start,
Binder binder) |
SmartBinder(SmartBinder original,
Signature next,
Binder binder) |
SmartHandle(Signature signature,
java.lang.invoke.MethodHandle handle) |