public class Binder extends Object
MethodHandle mh = Binder
.from(String.class, String.class, String.class) // String w(String, String)
.drop(1, String.class) // String x(String)
.insert(0, 'hello') // String y(String, String)
.cast(String.class, CharSequence.class, Object.class) // String z(CharSequence, Object)String
.invoke(someTargetHandle);
| 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,
java.lang.invoke.MethodType type)
Construct a new Binder using the given invokebinder plus an additional transform and current type
|
Binder(java.lang.invoke.MethodHandles.Lookup lookup,
Binder source)
Construct a new Binder using the given Lookup and invokebinder.
|
Binder(java.lang.invoke.MethodHandles.Lookup lookup,
java.lang.invoke.MethodType start)
Construct a new Binder, starting from a given Lookup and MethodType.
|
Binder(java.lang.invoke.MethodType start)
Construct a new Binder, starting from a given MethodType.
|
| Modifier and Type | Method and Description |
|---|---|
Binder |
append(boolean value)
Append to the argument list the given boolean value.
|
Binder |
append(byte value)
Append to the argument list the given byte value.
|
Binder |
append(char value)
Append to the argument list the given char value.
|
Binder |
append(Class[] types,
Object... values)
Append to the argument list the given argument value(s).
|
Binder |
append(double value)
Append to the argument list the given double value.
|
Binder |
append(float value)
Append to the argument list the given float value.
|
Binder |
append(int value)
Append to the argument list the given int value.
|
Binder |
append(long value)
Append to the argument list the given long value.
|
Binder |
append(Object... values)
Append to the argument list the given argument value(s).
|
Binder |
append(short value)
Append to the argument list the given short value.
|
java.lang.invoke.MethodHandle |
arrayGet()
Apply the chain of transforms and bind them to an array element get.
|
java.lang.invoke.MethodHandle |
arraySet()
Apply the chain of transforms and bind them to an array element set.
|
java.lang.invoke.MethodHandle |
branch(java.lang.invoke.MethodHandle test,
java.lang.invoke.MethodHandle truePath,
java.lang.invoke.MethodHandle falsePath)
Apply the chain of transforms and bind them to a boolean branch as from
java.lang.invoke.MethodHandles.guardWithTest.
|
Binder |
cast(Class returnType,
Class... argTypes)
Cast the incoming arguments to the given MethodType.
|
Binder |
cast(java.lang.invoke.MethodType type)
Cast the incoming arguments to the given MethodType.
|
Binder |
catchException(Class<? extends Throwable> throwable,
java.lang.invoke.MethodHandle function)
Catch the given exception type from the downstream chain and handle it with the
given function.
|
Binder |
collect(int index,
Class type)
Box all incoming arguments from the given position onward into the given array type.
|
java.lang.invoke.MethodHandle |
constant(Object value)
Apply the tranforms, binding them to a constant value that will
propagate back through the chain.
|
Binder |
convert(Class returnType,
Class... argTypes)
Convert the incoming arguments to the given MethodType.
|
Binder |
convert(java.lang.invoke.MethodType target)
Convert the incoming arguments to the given MethodType.
|
Binder |
drop(int index)
Drop a single argument at the given index.
|
Binder |
drop(int index,
int count)
Drop from the given index a number of arguments.
|
Binder |
dropLast()
Drop a single argument at the end of the argument list.
|
Binder |
dropLast(int count)
Drop from the end of the argument list a number of arguments.
|
Binder |
filter(int index,
java.lang.invoke.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 |
filterReturn(java.lang.invoke.MethodHandle function)
Filter return value, using a function that produces the current return type
from another type.
|
Binder |
fold(java.lang.invoke.MethodHandle function)
Process the incoming arguments using the given handle, inserting the result
as the first argument.
|
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 |
foldStatic(java.lang.invoke.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 |
foldVirtual(java.lang.invoke.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 |
foldVirtual(String method)
Process the incoming arguments by calling the given method on the first
argument, inserting the result as the first argument.
|
Binder |
foldVoid(java.lang.invoke.MethodHandle function) |
static Binder |
from(Binder start)
Construct a new Binder, starting from a given invokebinder.
|
static Binder |
from(Class returnType)
Construct a new Binder using a return type.
|
static Binder |
from(Class returnType,
Class[] argTypes)
Construct a new Binder using a return type and argument types.
|
static Binder |
from(Class returnType,
Class argType0,
Class... argTypes)
Construct a new Binder using a return type and argument types.
|
static Binder |
from(java.lang.invoke.MethodHandles.Lookup lookup,
Binder start)
Construct a new Binder, starting from a given invokebinder.
|
static Binder |
from(java.lang.invoke.MethodHandles.Lookup lookup,
Class returnType)
Construct a new Binder using a return type.
|
static Binder |
from(java.lang.invoke.MethodHandles.Lookup lookup,
Class returnType,
Class[] argTypes)
Construct a new Binder using a return type and argument types.
|
static Binder |
from(java.lang.invoke.MethodHandles.Lookup lookup,
Class returnType,
Class argType0,
Class... argTypes)
Construct a new Binder using a return type and argument types.
|
static Binder |
from(java.lang.invoke.MethodHandles.Lookup lookup,
java.lang.invoke.MethodType start)
Construct a new Binder, starting from a given MethodType.
|
static Binder |
from(java.lang.invoke.MethodType start)
Construct a new Binder, starting from a given MethodType.
|
java.lang.invoke.MethodHandle |
getField(java.lang.invoke.MethodHandles.Lookup lookup,
String name)
Apply the chain of transforms and bind them to an object field retrieval specified
using the end signature plus the given class and name.
|
java.lang.invoke.MethodHandle |
getFieldQuiet(java.lang.invoke.MethodHandles.Lookup lookup,
String name)
Apply the chain of transforms and bind them to an object field retrieval specified
using the end signature plus the given class and name.
|
java.lang.invoke.MethodHandle |
getStatic(java.lang.invoke.MethodHandles.Lookup lookup,
Class target,
String name)
Apply the chain of transforms and bind them to a static field retrieval specified
using the end signature plus the given class and name.
|
java.lang.invoke.MethodHandle |
getStaticQuiet(java.lang.invoke.MethodHandles.Lookup lookup,
Class target,
String name)
Apply the chain of transforms and bind them to a static field retrieval specified
using the end signature plus the given class and name.
|
java.lang.invoke.MethodHandle |
identity()
Apply the tranforms, binding them to a handle that will simply return its sole
argument as its return value.
|
Binder |
insert(int index,
boolean value)
Insert at the given index the given boolean value.
|
Binder |
insert(int index,
byte value)
Insert at the given index the given byte value.
|
Binder |
insert(int index,
char value)
Insert at the given index the given char value.
|
Binder |
insert(int index,
Class[] types,
Object... values)
Insert at the given index the given argument value(s).
|
Binder |
insert(int index,
double value)
Insert at the given index the given double value.
|
Binder |
insert(int index,
float value)
Insert at the given index the given float value.
|
Binder |
insert(int index,
int value)
Insert at the given index the given int value.
|
Binder |
insert(int index,
long value)
Insert at the given index the given long value.
|
Binder |
insert(int index,
Object... values)
Insert at the given index the given argument value(s).
|
Binder |
insert(int index,
short value)
Insert at the given index the given short value.
|
java.lang.invoke.MethodHandle |
invoke(java.lang.invoke.MethodHandle target)
Apply the chain of transforms with the target method handle as the final
endpoint.
|
java.lang.invoke.MethodHandle |
invoke(java.lang.invoke.MethodHandles.Lookup lookup,
Method method)
Apply the chain of transforms and bind them to a static method specified
using the end signature plus the given class and method.
|
java.lang.invoke.MethodHandle |
invokeConstructor(java.lang.invoke.MethodHandles.Lookup lookup,
Class target)
Apply the chain of transforms and bind them to a constructor specified
using the end signature plus the given class.
|
java.lang.invoke.MethodHandle |
invokeConstructorQuiet(java.lang.invoke.MethodHandles.Lookup lookup,
Class target)
Apply the chain of transforms and bind them to a constructor specified
using the end signature plus the given class.
|
java.lang.invoke.MethodHandle |
invokeQuiet(java.lang.invoke.MethodHandles.Lookup lookup,
Method method)
Apply the chain of transforms and bind them to a static method specified
using the end signature plus the given class and method.
|
java.lang.invoke.MethodHandle |
invoker()
Produce a MethodHandle that invokes its leading MethodHandle argument
with the remaining arguments, returning the result.
|
java.lang.invoke.MethodHandle |
invokeSpecial(java.lang.invoke.MethodHandles.Lookup lookup,
String name,
Class caller)
Apply the chain of transforms and bind them to a special method specified
using the end signature plus the given class and name.
|
java.lang.invoke.MethodHandle |
invokeSpecialQuiet(java.lang.invoke.MethodHandles.Lookup lookup,
String name,
Class caller)
Apply the chain of transforms and bind them to a special method specified
using the end signature plus the given class and name.
|
java.lang.invoke.MethodHandle |
invokeStatic(java.lang.invoke.MethodHandles.Lookup lookup,
Class target,
String name)
Apply the chain of transforms and bind them to a static method specified
using the end signature plus the given class and name.
|
java.lang.invoke.MethodHandle |
invokeStaticQuiet(java.lang.invoke.MethodHandles.Lookup lookup,
Class target,
String name)
Apply the chain of transforms and bind them to a static method specified
using the end signature plus the given class and name.
|
java.lang.invoke.MethodHandle |
invokeVirtual(java.lang.invoke.MethodHandles.Lookup lookup,
String name)
Apply the chain of transforms and bind them to a virtual method specified
using the end signature plus the given class and name.
|
java.lang.invoke.MethodHandle |
invokeVirtualQuiet(java.lang.invoke.MethodHandles.Lookup lookup,
String name)
Apply the chain of transforms and bind them to a virtual method specified
using the end signature plus the given class and name.
|
Binder |
logType()
Log the current MethodType as info.
|
java.lang.invoke.MethodHandle |
nop()
Apply all transforms to an endpoint that does absolutely nothing.
|
Binder |
permute(int... reorder)
Permute the incoming arguments to a new sequence specified by the given values.
|
Binder |
prepend(boolean value)
Prepend to the argument list the given boolean value.
|
Binder |
prepend(byte value)
Prepend to the argument list the given byte value.
|
Binder |
prepend(char value)
Prepend to the argument list the given char value.
|
Binder |
prepend(double value)
Prepend to the argument list the given double value.
|
Binder |
prepend(float value)
Prepend to the argument list the given float value.
|
Binder |
prepend(int value)
Prepend to the argument list the given int value.
|
Binder |
prepend(long value)
Prepend to the argument list the given long value.
|
Binder |
prepend(Object... values)
Prepend to the argument list the given argument value(s).
|
Binder |
prepend(short value)
Prepend to the argument list the given short value.
|
Binder |
printType()
Println the current MethodType to stdout.
|
Binder |
printType(PrintStream ps)
Println the current MethodType to the given stream.
|
java.lang.invoke.MethodHandle |
setField(java.lang.invoke.MethodHandles.Lookup lookup,
String name)
Apply the chain of transforms and bind them to an object field assignment specified
using the end signature plus the given class and name.
|
java.lang.invoke.MethodHandle |
setFieldQuiet(java.lang.invoke.MethodHandles.Lookup lookup,
String name)
Apply the chain of transforms and bind them to an object field assignment specified
using the end signature plus the given class and name.
|
java.lang.invoke.MethodHandle |
setStatic(java.lang.invoke.MethodHandles.Lookup lookup,
Class target,
String name)
Apply the chain of transforms and bind them to an object field assignment specified
using the end signature plus the given class and name.
|
java.lang.invoke.MethodHandle |
setStaticQuiet(java.lang.invoke.MethodHandles.Lookup lookup,
Class target,
String name)
Apply the chain of transforms and bind them to an object field assignment specified
using the end signature plus the given class and name.
|
Binder |
spread(Class... spreadTypes)
Spread a trailing array argument into the specified argument types.
|
Binder |
spread(int count)
Spread a trailing array argument into the given number of arguments of
the type of the array.
|
java.lang.invoke.MethodHandle |
throwException()
Throw the current signature's sole Throwable argument.
|
Binder |
to(Binder other)
Join this binder to an existing one by applying its transformations after
this one.
|
Binder |
tryFinally(java.lang.invoke.MethodHandle post)
Apply transforms to run the given handle's logic as a "finally" block.
|
java.lang.invoke.MethodType |
type()
The current MethodType, were the handle chain to terminate at this point.
|
Binder |
varargs(int index,
Class type)
Box all incoming arguments from the given position onward into the given array type.
|
Binder |
withLookup(java.lang.invoke.MethodHandles.Lookup lookup)
Use an alternate java.lang.invoke.MethodHandles.Lookup as the default for
any direct handles created.
|
public Binder(java.lang.invoke.MethodType start)
start - the starting MethodType, for calls entering the eventual chainpublic Binder(java.lang.invoke.MethodHandles.Lookup lookup, java.lang.invoke.MethodType start)
lookup - the Lookup context to use for direct handlesstart - the starting MethodType, for calls entering the eventual chainpublic Binder(Binder source)
public Binder(java.lang.invoke.MethodHandles.Lookup lookup, Binder source)
lookup - the Lookup context to use for direct handlessource - the source Binderpublic Binder(Binder source, Transform transform)
source - the source Bindertransform - the additional Transformpublic Binder(Binder source, Transform transform, java.lang.invoke.MethodType type)
source - the source Bindertransform - the additional Transformtype - the new current type resulting from the transformpublic static Binder from(java.lang.invoke.MethodType start)
start - the starting MethodType, for calls entering the eventual chainpublic static Binder from(java.lang.invoke.MethodHandles.Lookup lookup, java.lang.invoke.MethodType start)
lookup - the Lookup context to use for direct handlesstart - the starting MethodType, for calls entering the eventual chainpublic static Binder from(Class returnType)
returnType - the return type of the incoming signaturepublic static Binder from(java.lang.invoke.MethodHandles.Lookup lookup, Class returnType)
lookup - the Lookup context to use for direct handlesreturnType - the return type of the incoming signaturepublic static Binder from(Class returnType, Class[] argTypes)
returnType - the return type of the incoming signatureargTypes - the argument types of the incoming signaturepublic static Binder from(java.lang.invoke.MethodHandles.Lookup lookup, Class returnType, Class[] argTypes)
lookup - the Lookup context to use for direct handlesreturnType - the return type of the incoming signatureargTypes - the argument types of the incoming signaturepublic static Binder from(Class returnType, Class argType0, Class... argTypes)
returnType - the return type of the incoming signatureargType0 - the first argument type of the incoming signatureargTypes - the remaining argument types of the incoming signaturepublic static Binder from(java.lang.invoke.MethodHandles.Lookup lookup, Class returnType, Class argType0, Class... argTypes)
lookup - the Lookup context to use for direct handlesreturnType - the return type of the incoming signatureargType0 - the first argument type of the incoming signatureargTypes - the remaining argument types of the incoming signaturepublic static Binder from(Binder start)
start - the starting invokebinder; the new one will start with the current endpoint type
of the given invokebinderpublic static Binder from(java.lang.invoke.MethodHandles.Lookup lookup, Binder start)
lookup - the Lookup context to use for direct handlesstart - the starting invokebinder; the new one will start with the current endpoint type
of the given invokebinderpublic Binder to(Binder other)
other - the Binder containing the set of transformations to appendpublic Binder withLookup(java.lang.invoke.MethodHandles.Lookup lookup)
lookup - the new Lookup context to usepublic java.lang.invoke.MethodType type()
public Binder printType(PrintStream ps)
public Binder printType()
public Binder logType()
public Binder insert(int index, boolean value)
index - the index at which to insert the argument valuevalue - the value to insertpublic Binder insert(int index, byte value)
index - the index at which to insert the argument valuevalue - the value to insertpublic Binder insert(int index, short value)
index - the index at which to insert the argument valuevalue - the value to insertpublic Binder insert(int index, char value)
index - the index at which to insert the argument valuevalue - the value to insertpublic Binder insert(int index, int value)
index - the index at which to insert the argument valuevalue - the value to insertpublic Binder insert(int index, long value)
index - the index at which to insert the argument valuevalue - the value to insertpublic Binder insert(int index, float value)
index - the index at which to insert the argument valuevalue - the value to insertpublic Binder insert(int index, double value)
index - the index at which to insert the argument valuevalue - the value to insertpublic Binder insert(int index, Object... values)
index - the index at which to insert the argument valuevalues - the value(s) to insertpublic Binder insert(int index, Class[] types, Object... values)
index - the index at which to insert the argument valuetypes - the actual types to use, rather than getClassvalues - the value(s) to insertpublic Binder append(boolean value)
value - the value to appendpublic Binder append(byte value)
value - the value to appendpublic Binder append(short value)
value - the value to appendpublic Binder append(char value)
value - the value to appendpublic Binder append(int value)
value - the value to appendpublic Binder append(long value)
value - the value to appendpublic Binder append(float value)
value - the value to appendpublic Binder append(double value)
value - the value to appendpublic Binder append(Object... values)
values - the value(s) to appendpublic Binder prepend(boolean value)
value - the value to prependpublic Binder prepend(byte value)
value - the value to prependpublic Binder prepend(short value)
value - the value to prependpublic Binder prepend(char value)
value - the value to prependpublic Binder prepend(int value)
value - the value to prependpublic Binder prepend(long value)
value - the value to prependpublic Binder prepend(float value)
value - the value to prependpublic Binder prepend(double value)
value - the value to prependpublic Binder prepend(Object... values)
values - the value(s) to prependpublic Binder append(Class[] types, Object... values)
types - the actual types to use, rather than getClassvalues - the value(s) to appendpublic Binder drop(int index)
index - the index at which to drop an argumentpublic Binder drop(int index, int count)
index - the index at which to start droppingcount - the number of arguments to droppublic Binder dropLast()
public Binder dropLast(int count)
count - the number of arguments to droppublic Binder convert(java.lang.invoke.MethodType target)
target - the target MethodTypepublic Binder convert(Class returnType, Class... argTypes)
returnType - the target return typeargTypes - the target argument typespublic Binder cast(java.lang.invoke.MethodType type)
type - the target MethodTypepublic Binder cast(Class returnType, Class... argTypes)
returnType - the target return typeargTypes - the target argument typespublic Binder spread(Class... spreadTypes)
spreadTypes - the types into which to spread the incoming Object[]public Binder spread(int count)
count - the new count of arguments to spread from the trailing arraypublic Binder collect(int index, Class type)
index - the index from which to start boxing argstype - the array type into which the args will be boxedpublic Binder varargs(int index, Class type)
index - the index from which to start boxing argstype - the array type into which the args will be boxedpublic Binder permute(int... reorder)
reorder - the int offsets of the incoming arguments in the desired permutationpublic Binder fold(java.lang.invoke.MethodHandle function)
function - the function that will process the incoming arguments. Its
signature must match the current signature's arguments exactly.public Binder foldVoid(java.lang.invoke.MethodHandle function)
public Binder foldStatic(java.lang.invoke.MethodHandles.Lookup lookup, Class target, String method)
lookup - the java.lang.invoke.MethodHandles.Lookup to usetarget - the class on which the method is definedmethod - the method to invoke on the first argumentpublic Binder foldStatic(Class target, String method)
target - the class on which the method is definedmethod - the method to invoke on the first argumentpublic Binder foldVirtual(java.lang.invoke.MethodHandles.Lookup lookup, String method)
lookup - the java.lang.invoke.MethodHandles.Lookup to usemethod - the method to invoke on the first argumentpublic Binder foldVirtual(String method)
method - the method to invoke on the first argumentpublic Binder filter(int index, java.lang.invoke.MethodHandle... functions)
index - the index of the first argument to filterfunctions - the array of functions to transform the argumentspublic Binder filterReturn(java.lang.invoke.MethodHandle function)
function - the array of functions to transform the argumentspublic Binder tryFinally(java.lang.invoke.MethodHandle post)
post - the logic that would live inside the "finally" blockpublic Binder catchException(Class<? extends Throwable> throwable, java.lang.invoke.MethodHandle function)
throwable - the exception type to catchfunction - the function to use for handling the exceptionpublic java.lang.invoke.MethodHandle nop()
public java.lang.invoke.MethodHandle throwException()
public java.lang.invoke.MethodHandle constant(Object value)
value - the constant value to put at the end of the chainpublic java.lang.invoke.MethodHandle identity()
public java.lang.invoke.MethodHandle invoke(java.lang.invoke.MethodHandle target)
target - the endpoint handle to bind topublic java.lang.invoke.MethodHandle invoke(java.lang.invoke.MethodHandles.Lookup lookup, Method method) throws IllegalAccessException
lookup - the MethodHandles.Lookup to use to unreflect the methodmethod - the Method to unreflectIllegalAccessExceptionpublic java.lang.invoke.MethodHandle invokeQuiet(java.lang.invoke.MethodHandles.Lookup lookup, Method method)
lookup - the MethodHandles.Lookup to use to unreflect the methodmethod - the Method to unreflectpublic java.lang.invoke.MethodHandle invokeStatic(java.lang.invoke.MethodHandles.Lookup lookup, Class target, String name) throws NoSuchMethodException, IllegalAccessException
lookup - the MethodHandles.Lookup to use to unreflect the methodtarget - the class in which to find the methodname - the name of the method to invokeNoSuchMethodExceptionIllegalAccessExceptionpublic java.lang.invoke.MethodHandle invokeStaticQuiet(java.lang.invoke.MethodHandles.Lookup lookup, Class target, String name)
lookup - the MethodHandles.Lookup to use to look up the methodtarget - the class in which to find the methodname - the name of the method to invokepublic java.lang.invoke.MethodHandle invokeVirtual(java.lang.invoke.MethodHandles.Lookup lookup, String name) throws NoSuchMethodException, IllegalAccessException
lookup - the MethodHandles.Lookup to use to look up the methodname - the name of the method to invokeNoSuchMethodExceptionIllegalAccessExceptionpublic java.lang.invoke.MethodHandle invokeVirtualQuiet(java.lang.invoke.MethodHandles.Lookup lookup, String name)
lookup - the MethodHandles.Lookup to use to look up the methodname - the name of the method to invokepublic java.lang.invoke.MethodHandle invokeSpecial(java.lang.invoke.MethodHandles.Lookup lookup, String name, Class caller) throws NoSuchMethodException, IllegalAccessException
lookup - the MethodHandles.Lookup to use to look up the methodname - the name of the method to invokecaller - the calling classNoSuchMethodExceptionIllegalAccessExceptionpublic java.lang.invoke.MethodHandle invokeSpecialQuiet(java.lang.invoke.MethodHandles.Lookup lookup, String name, Class caller)
lookup - the MethodHandles.Lookup to use to look up the methodname - the name of the method to invokecaller - the calling classpublic java.lang.invoke.MethodHandle invokeConstructor(java.lang.invoke.MethodHandles.Lookup lookup, Class target) throws NoSuchMethodException, IllegalAccessException
lookup - the MethodHandles.Lookup to use to look up the constructortarget - the constructor's classNoSuchMethodExceptionIllegalAccessExceptionpublic java.lang.invoke.MethodHandle invokeConstructorQuiet(java.lang.invoke.MethodHandles.Lookup lookup, Class target)
lookup - the MethodHandles.Lookup to use to look up the constructortarget - the constructor's classpublic java.lang.invoke.MethodHandle getField(java.lang.invoke.MethodHandles.Lookup lookup, String name) throws NoSuchFieldException, IllegalAccessException
lookup - the MethodHandles.Lookup to use to look up the fieldname - the field's nameNoSuchFieldExceptionIllegalAccessExceptionpublic java.lang.invoke.MethodHandle getFieldQuiet(java.lang.invoke.MethodHandles.Lookup lookup, String name)
lookup - the MethodHandles.Lookup to use to look up the fieldname - the field's namepublic java.lang.invoke.MethodHandle getStatic(java.lang.invoke.MethodHandles.Lookup lookup, Class target, String name) throws NoSuchFieldException, IllegalAccessException
lookup - the MethodHandles.Lookup to use to look up the fieldtarget - the class in which the field is definedname - the field's nameNoSuchFieldExceptionIllegalAccessExceptionpublic java.lang.invoke.MethodHandle getStaticQuiet(java.lang.invoke.MethodHandles.Lookup lookup, Class target, String name)
lookup - the MethodHandles.Lookup to use to look up the fieldtarget - the class in which the field is definedname - the field's namepublic java.lang.invoke.MethodHandle setField(java.lang.invoke.MethodHandles.Lookup lookup, String name) throws NoSuchFieldException, IllegalAccessException
lookup - the MethodHandles.Lookup to use to look up the fieldname - the field's nameNoSuchFieldExceptionIllegalAccessExceptionpublic java.lang.invoke.MethodHandle setFieldQuiet(java.lang.invoke.MethodHandles.Lookup lookup, String name)
lookup - the MethodHandles.Lookup to use to look up the fieldname - the field's namepublic java.lang.invoke.MethodHandle setStatic(java.lang.invoke.MethodHandles.Lookup lookup, Class target, String name) throws NoSuchFieldException, IllegalAccessException
lookup - the MethodHandles.Lookup to use to look up the fieldtarget - the class in which the field is definedname - the field's nameNoSuchFieldExceptionIllegalAccessExceptionpublic java.lang.invoke.MethodHandle setStaticQuiet(java.lang.invoke.MethodHandles.Lookup lookup, Class target, String name)
lookup - the MethodHandles.Lookup to use to look up the fieldtarget - the class in which the field is definedname - the field's namepublic java.lang.invoke.MethodHandle arraySet()
public java.lang.invoke.MethodHandle arrayGet()
public java.lang.invoke.MethodHandle branch(java.lang.invoke.MethodHandle test, java.lang.invoke.MethodHandle truePath, java.lang.invoke.MethodHandle falsePath)
test - the test handletruePath - the target handlefalsePath - the fallback handlepublic java.lang.invoke.MethodHandle invoker()
Copyright © 2013. All Rights Reserved.