|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.ext.ffi.AbstractMemory
org.jruby.ext.ffi.Pointer
org.jruby.ext.ffi.AbstractInvoker
public abstract class AbstractInvoker
A native function invoker
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jruby.RubyObject |
|---|
RubyObject.Data, RubyObject.ObjectMethods |
| Nested classes/interfaces inherited from class org.jruby.RubyBasicObject |
|---|
RubyBasicObject.BasicObjectMethods, RubyBasicObject.Finalizer |
| Field Summary | |
|---|---|
protected Arity |
arity
The arity of this function. |
| Fields inherited from class org.jruby.ext.ffi.AbstractMemory |
|---|
ABSTRACT_MEMORY_RUBY_CLASS, io, size, typeSize |
| Fields inherited from class org.jruby.RubyObject |
|---|
OBJECT_ALLOCATOR |
| Fields inherited from class org.jruby.RubyBasicObject |
|---|
ALL_F, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, UNTRUSTED_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F |
| Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
|---|
NULL_ARRAY |
| Constructor Summary | |
|---|---|
protected |
AbstractInvoker(Ruby runtime,
RubyClass klass,
int arity,
DirectMemoryIO io)
Creates a new AbstractInvoker instance. |
| Method Summary | |
|---|---|
IRubyObject |
attach(ThreadContext context,
IRubyObject obj,
IRubyObject methodName)
Attaches this function to a ruby module or class. |
static RubyClass |
createAbstractInvokerClass(Ruby runtime,
RubyModule module)
|
protected abstract DynamicMethod |
createDynamicMethod(RubyModule module)
|
Arity |
getArity()
Returns the Arity of this function. |
| Methods inherited from class org.jruby.ext.ffi.Pointer |
|---|
address, createPointerClass, getAddress, getPointer, getPointerClass, initialize, initialize, inspect, null_p, slice, to_s |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Arity arity
| Constructor Detail |
|---|
protected AbstractInvoker(Ruby runtime,
RubyClass klass,
int arity,
DirectMemoryIO io)
arity - | Method Detail |
|---|
public static RubyClass createAbstractInvokerClass(Ruby runtime,
RubyModule module)
public IRubyObject attach(ThreadContext context,
IRubyObject obj,
IRubyObject methodName)
module - The module or class to attach the function to.methodName - The ruby name to attach the function as.protected abstract DynamicMethod createDynamicMethod(RubyModule module)
public final Arity getArity()
Arity of this function.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||