| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | buildClass(StringBuilder
the builder in which to build the type reference builder, Class<T> the type for the reference cls)Build Java code to represent a type reference to the given class. |
| protected static void | buildClassArgument(StringBuilder
the builder in which to build the argument builder, Class<T> the type for the argument cls)Build Java code to represent a single .class reference. |
| protected static void | buildClassArguments(StringBuilder
the builder in which to build the argument list builder, Class<?>[] the classes from which to create the argument list types)Build a list of argument type classes suitable for inserting into Java code. |
| protected static void | buildClassCast(StringBuilder
the builder in which to build the argument builder, Class<T> the type for the argument cls)Build Java code to represent a cast to the given type. |
| protected static void | buildPrimitiveJava(StringBuilder
the builder in which to generate the code builder, Object the primitive value to generate from value)Build Java code to represent a literal primitive. |
| public abstract MethodType | Returns: the new typethe source type source)Apply this transform downward from an incoming MethodType, producing a new type. |
| public static String | Returns: Java code suitable for building the given MethodTypethe MethodType for which to build Java code source)Build Java code appropriate for standing up the given MethodType. |
| public abstract String | Returns: a Java code representation of this transform.Return a Java code representation of this transform. |
| public abstract String | Returns: a string representation of this transformOverrides java. |
| public abstract MethodHandle | Returns: the adapted handlethe target handle target)Apply this transform upward from the given MethodHandle, producing a new handle. |
| Transform | back to summary |
|---|---|
| public Transform() | |
| buildClass | back to summary |
|---|---|
| private static void buildClass(StringBuilder builder, Class<T> cls) Build Java code to represent a type reference to the given class. This will be of the form "pkg.Cls1" or "pkc.Cls2[]" or "primtype".
| |
| buildClassArgument | back to summary |
|---|---|
| protected static void buildClassArgument(StringBuilder builder, Class<T> cls) Build Java code to represent a single .class reference. This will be an argument of the form "pkg.Cls1.class" or "pkg.Cls2[].class" or "primtype.class"
| |
| buildClassArguments | back to summary |
|---|---|
| protected static void buildClassArguments(StringBuilder builder, Class<?>[] types) Build a list of argument type classes suitable for inserting into Java code. This will be an argument list of the form "pkg.Cls1.class, pkg.Cls2[].class, primtype.class, ..."
| |
| buildClassCast | back to summary |
|---|---|
| protected static void buildClassCast(StringBuilder builder, Class<T> cls) Build Java code to represent a cast to the given type. This will be an argument of the form "(pkg.Cls1)" or "(pkg.Cls2[])" or "(primtype)"
| |
| buildPrimitiveJava | back to summary |
|---|---|
| protected static void buildPrimitiveJava(StringBuilder builder, Object value) Build Java code to represent a literal primitive. This will append L or F as appropriate for long and float primitives.
| |
| down | back to summary |
|---|---|
| public abstract MethodType down(MethodType source) Apply this transform downward from an incoming MethodType, producing a new type.
| |
| generateMethodType | back to summary |
|---|---|
| public static String generateMethodType(MethodType source) Build Java code appropriate for standing up the given MethodType.
| |
| toJava | back to summary |
|---|---|
| public abstract String toJava(MethodType incoming) Return a Java code representation of this transform.
| |
| toString | back to summary |
|---|---|
| public abstract String toString() Overrides java. Return a string representation of this transform.
| |
| up | back to summary |
|---|---|
| public abstract MethodHandle up(MethodHandle target) Apply this transform upward from the given MethodHandle, producing a new handle.
| |