Package | Description |
---|---|
com.headius.invokebinder |
Modifier and Type | Method and Description |
---|---|
Binder |
Binder.append(boolean value)
Append to the argument list the given boolean value.
|
Binder |
Binder.append(byte value)
Append to the argument list the given byte value.
|
Binder |
Binder.append(char value)
Append to the argument list the given char value.
|
Binder |
Binder.append(Class[] types,
Object... values)
Append to the argument list the given argument value(s).
|
Binder |
Binder.append(double value)
Append to the argument list the given double value.
|
Binder |
Binder.append(float value)
Append to the argument list the given float value.
|
Binder |
Binder.append(int value)
Append to the argument list the given int value.
|
Binder |
Binder.append(long value)
Append to the argument list the given long value.
|
Binder |
Binder.append(Object... values)
Append to the argument list the given argument value(s).
|
Binder |
Binder.append(short value)
Append to the argument list the given short value.
|
Binder |
SmartBinder.binder() |
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.dropLast()
Drop a single argument at the end of the argument list.
|
Binder |
Binder.dropLast(int count)
Drop from the end of the argument list 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.
|
Binder |
Binder.foldStatic(Class target,
String method)
Process the incoming arguments by calling the given static method on the
given class, inserting the result as the first argument.
|
Binder |
Binder.foldStatic(MethodHandles.Lookup lookup,
Class target,
String method)
Process the incoming arguments by calling the given static method on the
given class, inserting the result as the first argument.
|
Binder |
Binder.foldVirtual(MethodHandles.Lookup lookup,
String method)
Process the incoming arguments by calling the given method on the first
argument, inserting the result as the first argument.
|
Binder |
Binder.foldVirtual(String method)
Process the incoming arguments by calling the given method on the first
argument, inserting the result as the first argument.
|
Binder |
Binder.foldVoid(MethodHandle function) |
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(MethodHandles.Lookup lookup,
Binder start)
Construct a new Binder, starting from a given invokebinder.
|
static Binder |
Binder.from(MethodHandles.Lookup lookup,
Class returnType)
Construct a new Binder using a return type.
|
static Binder |
Binder.from(MethodHandles.Lookup lookup,
Class returnType,
Class[] argTypes)
Construct a new Binder using a return type and argument types.
|
static Binder |
Binder.from(MethodHandles.Lookup lookup,
Class returnType,
Class argType0,
Class... argTypes)
Construct a new Binder using a return type and argument types.
|
static Binder |
Binder.from(MethodHandles.Lookup lookup,
MethodType start)
Construct a new Binder, starting from a given MethodType.
|
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.prepend(boolean value)
Prepend to the argument list the given boolean value.
|
Binder |
Binder.prepend(byte value)
Prepend to the argument list the given byte value.
|
Binder |
Binder.prepend(char value)
Prepend to the argument list the given char value.
|
Binder |
Binder.prepend(double value)
Prepend to the argument list the given double value.
|
Binder |
Binder.prepend(float value)
Prepend to the argument list the given float value.
|
Binder |
Binder.prepend(int value)
Prepend to the argument list the given int value.
|
Binder |
Binder.prepend(long value)
Prepend to the argument list the given long value.
|
Binder |
Binder.prepend(Object... values)
Prepend to the argument list the given argument value(s).
|
Binder |
Binder.prepend(short value)
Prepend to the argument list the given short value.
|
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 array argument into the specified argument types.
|
Binder |
Binder.spread(int count)
Spread a trailing array argument into the given number of arguments of
the type of the array.
|
Binder |
Binder.to(Binder other)
Join this binder to an existing one by applying its transformations after
this one.
|
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.
|
Binder |
Binder.withLookup(MethodHandles.Lookup lookup)
Use an alternate java.lang.invoke.MethodHandles.Lookup as the default for
any direct handles created.
|
Modifier and Type | Method and Description |
---|---|
static Binder |
Binder.from(Binder start)
Construct a new Binder, starting from a given invokebinder.
|
static Binder |
Binder.from(MethodHandles.Lookup lookup,
Binder start)
Construct a new Binder, starting from a given invokebinder.
|
Binder |
Binder.to(Binder other)
Join this binder to an existing one by applying its transformations after
this one.
|
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
|
Binder(MethodHandles.Lookup lookup,
Binder source)
Construct a new Binder using the given Lookup and invokebinder.
|
Copyright © 2015. All rights reserved.