Package | Description |
---|---|
com.headius.invokebinder |
Modifier and Type | Method and Description |
---|---|
Binder |
Binder.cast(Class returnType,
Class... argTypes)
Cast the incoming arguments to the given MethodType.
|
Binder |
Binder.cast(MethodType type)
Cast the incoming arguments to the given MethodType.
|
Binder |
Binder.catchException(Class<? extends Throwable> throwable,
MethodHandle function)
Catch the given exception type from the downstream chain and handle it with the
given function.
|
Binder |
Binder.collect(int index,
Class type)
Box all incoming arguments from the given position onward into the given array type.
|
Binder |
Binder.convert(Class returnType,
Class... argTypes)
Convert the incoming arguments to the given MethodType.
|
Binder |
Binder.convert(MethodType target)
Convert the incoming arguments to the given MethodType.
|
Binder |
Binder.drop(int index)
Drop a single argument at the given index.
|
Binder |
Binder.drop(int index,
int count)
Drop from the given index a number of arguments.
|
Binder |
Binder.filter(int index,
MethodHandle... functions)
Filter incoming arguments, starting at the given index, replacing each with the
result of calling the associated function in the given list.
|
Binder |
Binder.filterReturn(MethodHandle function)
Filter return value, using a function that produces the current return type
from another type.
|
Binder |
Binder.fold(MethodHandle function)
Process the incoming arguments using the given handle, inserting the result
as the first argument.
|
static Binder |
Binder.from(Binder start)
Construct a new Binder, starting from a given invokebinder.
|
static Binder |
Binder.from(Class returnType)
Construct a new Binder using a return type.
|
static Binder |
Binder.from(Class returnType,
Class[] argTypes)
Construct a new Binder using a return type and argument types.
|
static Binder |
Binder.from(Class returnType,
Class argType0,
Class... argTypes)
Construct a new Binder using a return type and argument types.
|
static Binder |
Binder.from(MethodType start)
Construct a new Binder, starting from a given MethodType.
|
Binder |
Binder.insert(int index,
boolean value)
Insert at the given index the given boolean value.
|
Binder |
Binder.insert(int index,
byte value)
Insert at the given index the given byte value.
|
Binder |
Binder.insert(int index,
char value)
Insert at the given index the given char value.
|
Binder |
Binder.insert(int index,
Class[] types,
Object... values)
Insert at the given index the given argument value(s).
|
Binder |
Binder.insert(int index,
double value)
Insert at the given index the given double value.
|
Binder |
Binder.insert(int index,
float value)
Insert at the given index the given float value.
|
Binder |
Binder.insert(int index,
int value)
Insert at the given index the given int value.
|
Binder |
Binder.insert(int index,
long value)
Insert at the given index the given long value.
|
Binder |
Binder.insert(int index,
Object... values)
Insert at the given index the given argument value(s).
|
Binder |
Binder.insert(int index,
short value)
Insert at the given index the given short value.
|
Binder |
Binder.logType()
Log the current MethodType as info.
|
Binder |
Binder.permute(int... reorder)
Permute the incoming arguments to a new sequence specified by the given values.
|
Binder |
Binder.printType()
Println the current MethodType to stdout.
|
Binder |
Binder.printType(PrintStream ps)
Println the current MethodType to the given stream.
|
Binder |
Binder.spread(Class... spreadTypes)
Spread a trailing Object[] into the specified argument types.
|
Binder |
Binder.tryFinally(MethodHandle post)
Apply transforms to run the given handle's logic as a "finally" block.
|
Binder |
Binder.varargs(int index,
Class type)
Box all incoming arguments from the given position onward into the given array type.
|
Modifier and Type | Method and Description |
---|---|
static Binder |
Binder.from(Binder start)
Construct a new Binder, starting from a given invokebinder.
|
Constructor and Description |
---|
Binder(Binder source)
Construct a new Binder using the given invokebinder.
|
Binder(Binder source,
Transform transform)
Construct a new Binder using the given invokebinder plus an additional transform
|
Binder(Binder source,
Transform transform,
MethodType type)
Construct a new Binder using the given invokebinder plus an additional transform and current type
|
Copyright © 2014. All rights reserved.