Package | Description |
---|---|
org.jruby.anno | |
org.jruby.internal.runtime.methods | |
org.jruby.runtime | |
org.jruby.runtime.invokedynamic |
Modifier and Type | Method and Description |
---|---|
static void |
TypePopulator.populateMethod(JavaMethod javaMethod,
int arity,
String simpleName,
boolean isStatic,
CallConfiguration callConfig,
boolean notImplemented) |
static void |
TypePopulator.populateMethod(JavaMethod javaMethod,
int arity,
String simpleName,
boolean isStatic,
CallConfiguration callConfig,
boolean notImplemented,
Class nativeTarget,
String nativeName,
Class nativeReturn,
Class[] nativeArguments,
CallConfiguration callerRequirement) |
Modifier and Type | Field and Description |
---|---|
static CallConfiguration |
CallConfiguration.BACKTRACE_AND_SCOPE
Deprecated.
|
static CallConfiguration |
CallConfiguration.BACKTRACE_DUMMY_SCOPE
Deprecated.
|
static CallConfiguration |
CallConfiguration.BACKTRACE_ONLY
Deprecated.
|
protected CallConfiguration |
DynamicMethod.callConfig
The "call configuration" to use for pre/post call logic.
|
static CallConfiguration |
CallConfiguration.FRAME_AND_DUMMY_SCOPE
Deprecated.
|
static CallConfiguration |
CallConfiguration.FRAME_AND_SCOPE
Deprecated.
|
static CallConfiguration |
CallConfiguration.FRAME_ONLY
Deprecated.
|
static CallConfiguration |
CallConfiguration.NO_FRAME_DUMMY_SCOPE
Deprecated.
|
static CallConfiguration |
CallConfiguration.NO_FRAME_NO_SCOPE
Deprecated.
|
static CallConfiguration |
CallConfiguration.SCOPE_ONLY
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
CallConfiguration |
DynamicMethod.getCallConfig()
Get the CallConfiguration used for pre/post logic for this method handle.
|
CallConfiguration |
DelegatingDynamicMethod.getCallConfig() |
CallConfiguration |
CompiledMethod.LazyCompiledMethod.getCallConfig() |
CallConfiguration |
AliasMethod.getCallConfig() |
static CallConfiguration |
CallConfiguration.getCallConfig(boolean frame,
boolean scope)
Given a frame and scope requirement, return the name of the appropriate CallConfiguration.
|
static CallConfiguration |
CallConfiguration.getCallConfig(boolean frame,
boolean scope,
boolean backtrace)
Deprecated.
|
static CallConfiguration |
CallConfiguration.getCallConfigByAnno(JRubyMethod anno)
Produce a CallConfiguration name that represents what must be prepared around calls to
the method with this annotation.
|
static CallConfiguration |
CallConfiguration.getCallerCallConfigByAnno(JRubyMethod jrubyMethod)
Produce a CallConfiguration that represents what *caller* methods must prepare for
the method with this annotation.
|
CallConfiguration |
JavaMethod.getCallerRequirement()
Return a CallConfiguration representing what *callers* to this method must prepare (scope/frame).
|
static CallConfiguration |
CallConfiguration.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CallConfiguration[] |
CallConfiguration.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
DynamicMethod |
ReflectionMethodFactory.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 |
InvokeDynamicMethodFactory.getCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use JSR292 to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
InvocationMethodFactory.getCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use code generation to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
ReflectionMethodFactory.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.
|
DynamicMethod |
InvokeDynamicMethodFactory.getCompiledMethodLazily(RubyModule implementationClass,
String rubyName,
String javaName,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use code generation to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
InvocationMethodFactory.getCompiledMethodLazily(RubyModule implementationClass,
String rubyName,
String javaName,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use code generation to provide a method handle for a compiled Ruby method.
|
byte[] |
InvokeDynamicMethodFactory.getCompiledMethodOffline(String rubyName,
String javaName,
String className,
String invokerPath,
StaticScope scope,
CallConfiguration callConfig,
String filename,
int line,
MethodNodes methodNodes) |
byte[] |
InvocationMethodFactory.getCompiledMethodOffline(String RubyName,
String method,
String className,
String invokerPath,
StaticScope scope,
CallConfiguration callConfig,
String filename,
int line,
MethodNodes methodNodes)
Use code generation to provide a method handle for a compiled Ruby method.
|
static String |
InvocationMethodFactory.getPostMethod(CallConfiguration callConfig) |
void |
JavaMethod.init(RubyModule implementationClass,
Arity arity,
Visibility visibility,
StaticScope staticScope,
CallConfiguration callConfig) |
protected void |
DynamicMethod.init(RubyModule implementationClass,
Visibility visibility,
CallConfiguration callConfig) |
protected void |
CompiledMethod.init(RubyModule implementationClass,
Visibility visibility,
StaticScope staticScope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc) |
void |
UndefinedMethod.setCallConfig(CallConfiguration callConfig)
Dummy implementation of setCallConfig that does nothing.
|
void |
NullMethod.setCallConfig(CallConfiguration callConfig)
Dummy implementation of setCallConfig that does nothing.
|
void |
DynamicMethod.setCallConfig(CallConfiguration callConfig)
Set the CallConfiguration used for pre/post logic for this method handle.
|
void |
DelegatingDynamicMethod.setCallConfig(CallConfiguration callConfig) |
void |
CompiledMethod.LazyCompiledMethod.setCallConfig(CallConfiguration callConfig) |
void |
JavaMethod.setCallerRequirement(CallConfiguration callerRequirement)
Set a CallConfiguration indicating what callers to this method must prepare (scope/frame).
|
Modifier and Type | Method and Description |
---|---|
abstract DynamicMethod |
MethodFactory.getCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Get a new method handle based on the target JRuby-compiled method.
|
abstract DynamicMethod |
MethodFactory.getCompiledMethodLazily(RubyModule implementationClass,
String rubyName,
String javaName,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Like getCompiledMethod, but postpones any heavy lifting involved in
creating the method until first invocation.
|
byte[] |
MethodFactory.getCompiledMethodOffline(String rubyName,
String javaName,
String classPath,
String invokerPath,
StaticScope scope,
CallConfiguration callConfig,
String filename,
int line,
MethodNodes methodNodes)
Like getCompiledMethod, but produces the actual bytes for the compiled
method handle rather than loading and constructing it.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.invoke.MethodHandle |
InvocationLinker.getFramePost(com.headius.invokebinder.Signature signature,
CallConfiguration callConfig) |
static java.lang.invoke.MethodHandle |
InvocationLinker.getFramePre(com.headius.invokebinder.Signature signature,
CallConfiguration callConfig,
RubyModule implClass,
String name,
StaticScope scope) |
static java.lang.invoke.MethodHandle |
InvocationLinker.wrapWithFraming(com.headius.invokebinder.Signature signature,
CallConfiguration callConfig,
RubyModule implClass,
String name,
java.lang.invoke.MethodHandle nativeTarget,
StaticScope scope) |
Copyright © 2001-2015 JRuby. All Rights Reserved.