public class NativeAPIEntry extends InternalEntry
InternalEntry.SerializeMode, InternalEntry.Type
Modifier and Type | Field and Description |
---|---|
private CallingConvention |
callconv
The API calling convention.
|
private java.lang.String |
libname
Library name in which this native API exists.
|
private int |
ordinal
The ordinal if the API is exported via ordinal instead of name.
|
private boolean |
persistent
Flag to determine if a library loaded just for this call should be kept in memory.
|
private boolean |
threadSafe
Marks this native API as having the legacy THREAD-SAFE option.
|
BUFFER_MODE, INPUT_MODE, INPUT_OUTPUT_MODE, OUTPUT_MODE
Constructor and Description |
---|
NativeAPIEntry(java.lang.String pname,
java.lang.String jname)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
CallingConvention |
getCallingConvention()
Get the calling convention.
|
java.lang.String |
getLibraryName()
Get the library name.
|
int |
getOrdinal()
Get the ordinal.
|
boolean |
isPersistent()
Checks if the library should be loaded persistently.
|
boolean |
isThreadSafe()
Get the state of the
thread-safe option. |
void |
putAttribute(java.lang.String name,
java.lang.String value)
Set the value of the given attribute.
|
void |
setCallingConvention(CallingConvention callconv)
Set the
calling convention . |
void |
setLibraryName(java.lang.String libname)
Set the
library name . |
void |
setOrdinal(int ordinal)
Set the
ordinal for this API. |
void |
setPersistent(boolean persistent)
Set the
persistent flag. |
void |
setThreadSafe(boolean threadSafe)
Set the
thread-safe option. |
getAttribute, getExtent, getLegacyName, getLibname, getMapTo, getMethod, getParameter, getParameterList, getParameterListSize, getParameterModes, getParameters, getQualified, getSignature, initialize, isFunction, isInHandle, isOutputMode, isPrivate, isSuper, setParameterList
private java.lang.String libname
private CallingConvention callconv
private boolean persistent
private int ordinal
private boolean threadSafe
public NativeAPIEntry(java.lang.String pname, java.lang.String jname)
pname
- Legacy 4GL name for this internal-entry.jname
- Converted Java name for this internal-entry.public void putAttribute(java.lang.String name, java.lang.String value)
putAttribute
in class InternalEntry
name
- The attribute's name.value
- The attribute's value.public java.lang.String getLibraryName()
public void setLibraryName(java.lang.String libname)
library name
.libname
- The library name.public CallingConvention getCallingConvention()
public void setCallingConvention(CallingConvention callconv)
calling convention
.callconv
- The calling convention.public boolean isPersistent()
true
if the library should be loaded persistently.public void setPersistent(boolean persistent)
persistent
flag.persistent
- The new value of this flag.public int getOrdinal()
public void setOrdinal(int ordinal)
ordinal
for this API.ordinal
- The ordinal value.public boolean isThreadSafe()
thread-safe
option.public void setThreadSafe(boolean threadSafe)
thread-safe
option.threadSafe
- The new value of this flag.