| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static MethodFactory | Returns: A new MethodFactory.The classloader to use for searching for and
dynamically loading code. classLoader)Based on optional properties, create a new MethodFactory. |
| public abstract DynamicMethod | Returns: A method handle for the target object.The target class or module on which the method
will be bound. implementationClass, List<JavaMethodDescriptor> desc, String name)Based on a list of annotated Java methods, generate a method handle using the annotation and the target signatures. |
| public abstract DynamicMethod | Returns: A method handle for the target object.The target class or module on which the method
will be bound. implementationClass, JavaMethodDescriptor A JavaMethodDescriptor describing the target method desc, String name)Based on an annotated Java method object, generate a method handle using the annotation and the target signature. |
| MethodFactory | back to summary |
|---|---|
| public MethodFactory() | |
| createFactory | back to summary |
|---|---|
| public static MethodFactory createFactory(ClassLoader classLoader) Based on optional properties, create a new MethodFactory. By default, this will create a code-generation-based InvocationMethodFactory. If security restricts code generation, ReflectionMethodFactory will be used. If we are dumping class definitions, DumpingInvocationMethodFactory will be used. See MethodFactory's static initializer for more details.
| |
| getAnnotatedMethod | back to summary |
|---|---|
| public abstract DynamicMethod getAnnotatedMethod(RubyModule implementationClass, List<JavaMethodDescriptor> desc, String name) Based on a list of annotated Java methods, generate a method handle using the annotation and the target signatures. The annotation and signatures will be used to dynamically generate the appropriate call logic for the handle. This differs from the single-method version in that it will dispatch multiple specific-arity paths to different target methods.
| |
| getAnnotatedMethod | back to summary |
|---|---|
| public abstract DynamicMethod getAnnotatedMethod(RubyModule implementationClass, JavaMethodDescriptor desc, String name) Based on an annotated Java method object, generate a method handle using the annotation and the target signature. The annotation and signature will be used to dynamically generate the appropriate call logic for the handle.
| |