public class ReflectionMethodFactory extends MethodFactory
MethodFactoryMethodFactory.MethodDefiningCallbackCAN_LOAD_BYTECODE, COMPILED_METHOD_PARAMS| Constructor and Description |
|---|
ReflectionMethodFactory() |
| Modifier and Type | Method and Description |
|---|---|
DynamicMethod |
getAnnotatedMethod(RubyModule implementationClass,
JavaMethodDescriptor desc)
Use reflection to provide a method handle based on an annotated Java
method.
|
DynamicMethod |
getAnnotatedMethod(RubyModule implementationClass,
List<JavaMethodDescriptor> descs)
Use reflection to provide a method handle based on an annotated Java
method.
|
DynamicMethod |
getCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use reflection to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
getCompiledMethodLazily(RubyModule implementationClass,
String rubyName,
String javaName,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use reflection to provide a method handle for a compiled Ruby method.
|
createFactory, getCompiledMethodOfflinepublic DynamicMethod getCompiledMethodLazily(RubyModule implementationClass, String rubyName, String javaName, Visibility visibility, StaticScope scope, Object scriptObject, CallConfiguration callConfig, ISourcePosition position, String parameterDesc, MethodNodes methodNodes)
getCompiledMethodLazily in class MethodFactoryimplementationClass - The class to which the method will be bound.rubyName - The Ruby method name to which the method will bindjavaName - The name of the methodvisibility - The method's visibility on the target type.scope - The methods static scoping information.scriptObject - An instace of the target compiled method class.callConfig - The call configuration to use for this method.MethodFactory.getCompiledMethod(org.jruby.RubyModule, java.lang.String, java.lang.String, org.jruby.runtime.Visibility, org.jruby.parser.StaticScope, java.lang.Object, org.jruby.internal.runtime.methods.CallConfiguration, org.jruby.lexer.yacc.ISourcePosition, java.lang.String, org.jruby.internal.runtime.methods.MethodNodes)public DynamicMethod getCompiledMethod(RubyModule implementationClass, String rubyName, String javaName, Visibility visibility, StaticScope scope, Object scriptObject, CallConfiguration callConfig, ISourcePosition position, String parameterDesc, MethodNodes methodNodes)
getCompiledMethod in class MethodFactoryimplementationClass - The class to which the method will be bound.rubyName - The Ruby method name to which the method will bindjavaName - The name of the methodvisibility - The method's visibility on the target type.scope - The methods static scoping information.scriptObject - An instace of the target compiled method class.callConfig - The call configuration to use for this method.position - The position to use when generating traceable handles.MethodFactory.getCompiledMethod(org.jruby.RubyModule, java.lang.String, java.lang.String, org.jruby.runtime.Visibility, org.jruby.parser.StaticScope, java.lang.Object, org.jruby.internal.runtime.methods.CallConfiguration, org.jruby.lexer.yacc.ISourcePosition, java.lang.String, org.jruby.internal.runtime.methods.MethodNodes)public DynamicMethod getAnnotatedMethod(RubyModule implementationClass, JavaMethodDescriptor desc)
getAnnotatedMethod in class MethodFactoryimplementationClass - The target class or module on which the method
will be bound.desc - A JavaMethodDescriptor describing the target methodMethodFactory.getAnnotatedMethod(org.jruby.RubyModule, java.util.List<org.jruby.anno.JavaMethodDescriptor>)public DynamicMethod getAnnotatedMethod(RubyModule implementationClass, List<JavaMethodDescriptor> descs)
getAnnotatedMethod in class MethodFactoryimplementationClass - The target class or module on which the method
will be bound.MethodFactory.getAnnotatedMethod(org.jruby.RubyModule, java.util.List<org.jruby.anno.JavaMethodDescriptor>)Copyright © 2001-2015 JRuby. All Rights Reserved.