Uses of Class
org.jruby.runtime.MethodFactory
Packages that use MethodFactory
-
Uses of MethodFactory in org.jruby
Methods in org.jruby with parameters of type MethodFactoryModifier and TypeMethodDescriptionfinal boolean
RubyModule.defineAnnotatedMethod
(Method method, MethodFactory methodFactory) Deprecated.final boolean
RubyModule.defineAnnotatedMethod
(String name, List<JavaMethodDescriptor> methods, MethodFactory methodFactory) Deprecated.final boolean
RubyModule.defineAnnotatedMethod
(String name, JavaMethodDescriptor desc, MethodFactory methodFactory) Deprecated.final void
RubyModule.defineAnnotatedMethod
(ThreadContext context, String name, List<JavaMethodDescriptor> methods, MethodFactory methodFactory) This is an internal API used by the type populator. -
Uses of MethodFactory in org.jruby.internal.runtime.methods
Subclasses of MethodFactory in org.jruby.internal.runtime.methodsModifier and TypeClassDescriptionclass
This factory extends InvocationMethodFactory by also dumping the classes to .class files at runtime.class
In order to avoid the overhead with reflection-based method handles, this MethodFactory uses ASM to generate tiny invoker classes.class
This invoker uses MethodHandle for all bindings to Java code, rather than generating stubs or using reflection. -
Uses of MethodFactory in org.jruby.runtime
Methods in org.jruby.runtime that return MethodFactoryModifier and TypeMethodDescriptionstatic MethodFactory
MethodFactory.createFactory
(ClassLoader classLoader) Based on optional properties, create a new MethodFactory.
RubyModule.defineMethods(ThreadContext, Class[])
instead and organize your code around all JRubyMethod annotations in that .class being defined.