Package | Description |
---|---|
com.headius.invokebinder |
Modifier and Type | Method and Description |
---|---|
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() |
SmartHandle |
SmartBinder.arraySet() |
SmartHandle |
SmartHandle.bindTo(Object obj)
Bind the first argument of this SmartHandle to the given object,
returning a new adapted handle.
|
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.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(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.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.drop(int index,
String newName,
Class type)
Insert an argument into the handle at the given index, returning a new
SmartHandle.
|
SmartHandle |
SmartHandle.drop(String beforeName,
String newName,
Class type)
Insert an argument into the handle at the given index, returning a new
SmartHandle.
|
SmartHandle |
SmartHandle.dropLast(String newName,
Class type)
Insert an argument into the handle at the given index, 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.invoke(MethodHandle target) |
SmartHandle |
SmartBinder.invoke(SmartHandle target) |
SmartHandle |
SmartBinder.invoker()
Produce a SmartHandle from this binder that invokes a leading
MethodHandle argument with the remaining arguments.
|
SmartHandle |
SmartBinder.invokeStaticQuiet(MethodHandles.Lookup lookup,
Class target,
String name) |
SmartHandle |
SmartBinder.invokeVirtualQuiet(MethodHandles.Lookup lookup,
String name) |
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.
|
Modifier and Type | Method and Description |
---|---|
SmartBinder |
SmartBinder.filterReturn(SmartHandle filter) |
SmartBinder |
SmartBinder.fold(String newName,
SmartHandle function) |
SmartBinder |
SmartBinder.foldVoid(SmartHandle function) |
SmartHandle |
SmartHandle.guard(SmartHandle target,
SmartHandle fallback)
Use this SmartHandle as a test to guard target and fallback handles.
|
SmartHandle |
SmartBinder.invoke(SmartHandle target) |
SmartHandle |
Signature.permuteWith(SmartHandle target)
Produce a new SmartHandle by permuting this Signature's arguments to the
Signature of a target SmartHandle.
|
Copyright © 2015. All rights reserved.