| Constructor | Description |
|---|---|
Transform() |
| Modifier and Type | Method | Description |
|---|---|---|
protected static void |
buildClassArgument(StringBuilder builder,
Class cls) |
Build Java code to represent a single .class reference.
|
protected static void |
buildClassArguments(StringBuilder builder,
Class<?>[] types) |
Build a list of argument type classes suitable for inserting into Java code.
|
protected static void |
buildClassCast(StringBuilder builder,
Class cls) |
Build Java code to represent a cast to the given type.
|
protected static void |
buildPrimitiveJava(StringBuilder builder,
Object value) |
Build Java code to represent a literal primitive.
|
abstract MethodType |
down(MethodType source) |
Apply this transform downward from an incoming MethodType, producing
a new type.
|
static String |
generateMethodType(MethodType source) |
Build Java code appropriate for standing up the given MethodType.
|
abstract String |
toJava(MethodType incoming) |
Return a Java code representation of this transform.
|
abstract String |
toString() |
Return a string representation of this transform.
|
abstract MethodHandle |
up(MethodHandle target) |
Apply this transform upward from the given MethodHandle, producing
a new handle.
|
public abstract MethodHandle up(MethodHandle target)
target - the target handlepublic abstract MethodType down(MethodType source)
source - the source typepublic abstract String toString()
public abstract String toJava(MethodType incoming)
protected static void buildClassArguments(StringBuilder builder, Class<?>[] types)
builder - the builder in which to build the argument listtypes - the classes from which to create the argument listprotected static void buildClassArgument(StringBuilder builder, Class cls)
builder - the builder in which to build the argumentcls - the type for the argumentprotected static void buildClassCast(StringBuilder builder, Class cls)
builder - the builder in which to build the argumentcls - the type for the argumentprotected static void buildPrimitiveJava(StringBuilder builder, Object value)
builder - the builder in which to generate the codevalue - the primitive value to generate frompublic static String generateMethodType(MethodType source)
source - the MethodType for which to build Java codeCopyright © 2018. All rights reserved.