Top Description Methods
org.jruby.internal.runtime.methods

public Interface NativeCallMethod

Known Direct Implementers
org.jruby.internal.runtime.methods.JavaMethod

Created by headius on 8/1/15.

Method Summary

Modifier and TypeMethod and Description
public DynamicMethod.NativeCall

Returns:

a NativeCall if the method has a native representation.
getNativeCall
()

Get the NativeCall for the method, if available.

public void
setNativeCall(Class<T>
native method target
nativeTarget
,
String
native method name
nativeName
,
Class<T>
native method return
nativeReturn
,
Class<T>[]
native method arguments
nativeSignature
,
boolean
static?
statik
,
boolean
plain Java method?
java
)

Set the single-arity NativeCall for this method.

public void
setNativeCall(Class<T>
native method target
nativeTarget
,
String
native method name
nativeName
,
Class<T>
native method return
nativeReturn
,
Class<T>[]
native method arguments
nativeSignature
,
boolean
static?
statik
)

Set the single-arity NativeCall for this method.

Method Detail

getNativeCallback to summary
public DynamicMethod.NativeCall getNativeCall()

Get the NativeCall for the method, if available.

Returns:DynamicMethod.NativeCall

a NativeCall if the method has a native representation.

setNativeCallback to summary
public void setNativeCall(Class<T> nativeTarget, String nativeName, Class<T> nativeReturn, Class<T>[] nativeSignature, boolean statik, boolean java)

Set the single-arity NativeCall for this method. All signatures for the non-single-arity getNativeCall will also be set to this value.

Parameters
nativeTarget:Class<T>

native method target

nativeName:String

native method name

nativeReturn:Class<T>

native method return

nativeSignature:Class<T>[]

native method arguments

statik:boolean

static?

java:boolean

plain Java method?

setNativeCallback to summary
public void setNativeCall(Class<T> nativeTarget, String nativeName, Class<T> nativeReturn, Class<T>[] nativeSignature, boolean statik)

Set the single-arity NativeCall for this method. All signatures for the non-single-arity getNativeCall will also be set to this value.

Parameters
nativeTarget:Class<T>

native method target

nativeName:String

native method name

nativeReturn:Class<T>

native method return

nativeSignature:Class<T>[]

native method arguments

statik:boolean

static?