[Java] Class TypeTransformers
- org.codehaus.groovy.vmplugin.v7.TypeTransformers
This class contains several transformers for used during method invocation.
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
protected static MethodHandle |
addTransformer(MethodHandle handle, int pos, Object arg, Class parameter) Adds a type transformer applied at runtime. | |
static MethodHandle |
applyUnsharpFilter(MethodHandle handle, int pos, MethodHandle transformer) Apply a transformer as filter. |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail
protected static MethodHandle addTransformer(MethodHandle handle, int pos, Object arg, Class parameter)
Adds a type transformer applied at runtime. This method handles transformations to String from GString, array transformations and number based transformations
public static MethodHandle applyUnsharpFilter(MethodHandle handle, int pos, MethodHandle transformer)
Apply a transformer as filter. The filter may not match exactly in the types. In this case needed additional type transformations are done by MethodHandle.asType
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/org/codehaus/groovy/vmplugin/v7/TypeTransformers.html