| Modifier and Type | Field and Description |
|---|---|
| protected final Arity | |
| private final NativeCallbackFactory | |
| private final int | |
| protected final Function |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | call(ThreadContext
The thread context for the currently executing thread context, IRubyObject The 'self' or 'receiver' object to use for this call self, RubyModule The Ruby class against which this method is binding clazz, String The incoming name used to invoke this method name, IRubyObject[] The argument list to this invocation args, Block The block passed to this invocation block)Implements abstract org. The minimum 'call' method required for a dynamic method handle. |
| public final DynamicMethod | dup()
Implements abstract org. Duplicate this method, returning DynamicMethod referencing the same code and with the same attributes. |
| public final Arity | getArity()
Overrides org.
Deprecated
Retrieve the arity of this method, used for reporting arity to Ruby code. |
| pack-priv CallContext | |
| pack-priv long | |
| public final boolean | isNative()
Overrides org. Returns true if this method is backed by native (i.e. Java) code. |
| arity | back to summary |
|---|---|
| protected final Arity arity | |
| cbFactory | back to summary |
|---|---|
| private final NativeCallbackFactory cbFactory | |
| cbIndex | back to summary |
|---|---|
| private final int cbIndex | |
| function | back to summary |
|---|---|
| protected final Function function | |
| NativeInvoker | back to summary |
|---|---|
| public NativeInvoker(RubyModule implementationClass, Function function, Signature signature) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) Implements abstract org. Doc from org. The minimum 'call' method required for a dynamic method handle. Subclasses must implement this method, but may implement the other signatures to provide faster, non-boxing call paths. Typically subclasses will implement this method to check variable arity calls, then performing a specific-arity invocation to the appropriate method or performing variable-arity logic in-line.
| |
| dup | back to summary |
|---|---|
| public final DynamicMethod dup() Implements abstract org. Doc from org. Duplicate this method, returning DynamicMethod referencing the same code and with the same attributes. It is not required that this method produce a new object if the semantics of the DynamicMethod subtype do not require such.
| |
| getArity | back to summary |
|---|---|
| public final Arity getArity() Overrides org. Doc from org. Deprecated
Retrieve the arity of this method, used for reporting arity to Ruby code. This arity may or may not reflect the actual specific or variable arities of the referenced method.
| |
| getCallContext | back to summary |
|---|---|
| pack-priv CallContext getCallContext() | |
| getFunctionAddress | back to summary |
|---|---|
| pack-priv long getFunctionAddress() | |
| isNative | back to summary |
|---|---|
| public final boolean isNative() Overrides org. Doc from org. Returns true if this method is backed by native (i.e. Java) code.
| |