public final class JNINativeLinkage extends Object
native
method's implementation at runtime. This object
is accessed in the method's compiled JNINativeCallWrapperMethod
.Constructor and Description |
---|
JNINativeLinkage(String declaringClass,
String name,
String descriptor)
Creates an object for linking the address of a native method.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns
true iff obj is a JNINativeLinkage and has the same declaring
class, name and descriptor as this object. |
CGlobalDataInfo |
getBuiltInAddress() |
String |
getDeclaringClassName() |
String |
getDescriptor() |
String |
getName() |
org.graalvm.word.PointerBase |
getOrFindEntryPoint()
Gets the native address for the
native method represented by this object, attempting
to resolve it if it is currently 0. |
int |
hashCode() |
boolean |
isBuiltInFunction() |
static String |
mangle(String s) |
void |
setEntryPoint(org.graalvm.nativeimage.c.function.CFunctionPointer fnptr)
Sets the native address for the
native method represented by this object. |
String |
toString() |
void |
unsetEntryPoint()
Resets the entry point stored for the native method represented by this object, triggering a
symbol lookup when the method is called the next time.
|
public JNINativeLinkage(String declaringClass, String name, String descriptor)
declaringClass
- the name of the class declaring the
native methodname
- the name of the native methoddescriptor
- the descriptor of the native
methodpublic String getDeclaringClassName()
public String getName()
public String getDescriptor()
public boolean isBuiltInFunction()
public CGlobalDataInfo getBuiltInAddress()
public void setEntryPoint(org.graalvm.nativeimage.c.function.CFunctionPointer fnptr)
native
method represented by this object.public void unsetEntryPoint()
public boolean equals(Object obj)
true
iff obj
is a JNINativeLinkage
and has the same declaring
class, name and descriptor as this object.public org.graalvm.word.PointerBase getOrFindEntryPoint()
native
method represented by this object, attempting
to resolve it if it is currently 0.