| Modifier and Type | Field and Description |
|---|---|
| protected final Arity | arity
The arity of this function. |
| public static final String | |
| protected final Type[] | |
| protected final Type | |
| protected final boolean |
| Access | Constructor and Description |
|---|---|
| public | CallbackInfo(Ruby
The runtime to create the instance for runtime, RubyClass The ruby class of the CallbackInfo instance klazz, Type The return type of the callback returnType, Type[] The parameter types of the callback paramTypes, boolean stdcall)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public static RubyClass | |
| public final Arity | Returns: TheArity of the native function.Returns the |
| public final Type[] | Returns: An array of the parameter typesGets the ruby parameter types of the callback |
| public final Type | Returns: The native return typeGets the native return type the callback should return |
| public final boolean | |
| public static final IRubyObject | Returns: A new CallbackInfo instanceThe current ruby thread context context, IRubyObject The ruby class of the CallbackInfo instance klass, IRubyObject[] An array containing the ruby parameter types args)CallbackInfo.new |
| public final IRubyObject | |
| public final IRubyObject | |
| public final IRubyObject | |
| public final String | toString()
Overrides org. The default toString method is just a wrapper that calls the Ruby "to_s" method. |
| arity | back to summary |
|---|---|
| protected final Arity arity The arity of this function. | |
| CLASS_NAME | back to summary |
|---|---|
| public static final String CLASS_NAME | |
| parameterTypes | back to summary |
|---|---|
| protected final Type[] parameterTypes | |
| returnType | back to summary |
|---|---|
| protected final Type returnType | |
| stdcall | back to summary |
|---|---|
| protected final boolean stdcall | |
| CallbackInfo | back to summary |
|---|---|
| public CallbackInfo(Ruby runtime, RubyClass klazz, Type returnType, Type[] paramTypes, boolean stdcall) Creates a new | |
| createCallbackInfoClass | back to summary |
|---|---|
| public static RubyClass createCallbackInfoClass(ThreadContext context, RubyModule module, RubyClass Type) | |
| getArity | back to summary |
|---|---|
| public final Arity getArity() Returns the
| |
| getParameterTypes | back to summary |
|---|---|
| public final Type[] getParameterTypes() Gets the ruby parameter types of the callback
| |
| getReturnType | back to summary |
|---|---|
| public final Type getReturnType() Gets the native return type the callback should return
| |
| isStdcall | back to summary |
|---|---|
| public final boolean isStdcall() | |
| newCallbackInfo | back to summary |
|---|---|
| public static final IRubyObject newCallbackInfo(ThreadContext context, IRubyObject klass, IRubyObject[] args) CallbackInfo.new
| |
| param_types | back to summary |
|---|---|
public final IRubyObject param_types(ThreadContext context)
| |
| result_type | back to summary |
|---|---|
public final IRubyObject result_type(ThreadContext context)
| |
| to_s | back to summary |
|---|---|
| public final IRubyObject to_s(ThreadContext context) Overrides org.
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides org. Doc from org. The default toString method is just a wrapper that calls the Ruby "to_s" method. | |