public class ReflectionMethodFactory extends MethodFactory
org.jruby.internal.runtime.methods.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,
java.util.List<JavaMethodDescriptor> descs)
Use reflection to provide a method handle based on an annotated Java
method.
|
CompiledBlockCallback |
getBlockCallback(java.lang.String method,
java.lang.String file,
int line,
java.lang.Object scriptObject)
Get a CompiledBlockCallback for the specified block
|
CompiledBlockCallback19 |
getBlockCallback19(java.lang.String method,
java.lang.String file,
int line,
java.lang.Object scriptObject)
Get a CompiledBlockCallback for the specified block
|
DynamicMethod |
getCompiledMethod(RubyModule implementationClass,
java.lang.String methodName,
Arity arity,
Visibility visibility,
StaticScope scope,
java.lang.Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
java.lang.String parameterDesc)
Use reflection to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
getCompiledMethodLazily(RubyModule implementationClass,
java.lang.String methodName,
Arity arity,
Visibility visibility,
StaticScope scope,
java.lang.Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
java.lang.String parameterDesc)
Use reflection to provide a method handle for a compiled Ruby method.
|
createFactory, getBlockCallback19Offline, getBlockCallbackOffline, getCompiledMethodOfflinepublic DynamicMethod getCompiledMethodLazily(RubyModule implementationClass, java.lang.String methodName, Arity arity, Visibility visibility, StaticScope scope, java.lang.Object scriptObject, CallConfiguration callConfig, ISourcePosition position, java.lang.String parameterDesc)
getCompiledMethodLazily in class MethodFactoryimplementationClass - The class to which the method will be bound.methodName - The name of the methodarity - The Arity 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.org.jruby.internal.runtime.methods.MethodFactory#getCompiledMethodpublic DynamicMethod getCompiledMethod(RubyModule implementationClass, java.lang.String methodName, Arity arity, Visibility visibility, StaticScope scope, java.lang.Object scriptObject, CallConfiguration callConfig, ISourcePosition position, java.lang.String parameterDesc)
getCompiledMethod in class MethodFactoryimplementationClass - The class to which the method will be bound.methodName - The name of the methodarity - The Arity 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.org.jruby.internal.runtime.methods.MethodFactory#getCompiledMethodpublic 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 methodorg.jruby.internal.runtime.methods.MethodFactory#getAnnotatedMethodpublic DynamicMethod getAnnotatedMethod(RubyModule implementationClass, java.util.List<JavaMethodDescriptor> descs)
getAnnotatedMethod in class MethodFactoryimplementationClass - The target class or module on which the method
will be bound.org.jruby.internal.runtime.methods.MethodFactory#getAnnotatedMethodpublic CompiledBlockCallback getBlockCallback(java.lang.String method, java.lang.String file, int line, java.lang.Object scriptObject)
MethodFactorygetBlockCallback in class MethodFactorymethod - The name of the methodscriptObject - The object in which the method can be foundpublic CompiledBlockCallback19 getBlockCallback19(java.lang.String method, java.lang.String file, int line, java.lang.Object scriptObject)
MethodFactorygetBlockCallback19 in class MethodFactorymethod - The name of the methodscriptObject - The object in which the method can be foundCopyright © 2002-2009 JRuby Team. All Rights Reserved.