Modifier and Type | Field and Description |
---|---|
private java.lang.Throwable |
cause |
private java.lang.String |
message |
Constructor and Description |
---|
InvalidRuntime(java.lang.String message,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
long |
addressMask()
Gets the address mask for this runtime
|
int |
addressSize()
Gets the size of an address (e.g.
|
java.nio.ByteOrder |
byteOrder()
Gets the native byte order of the runtime.
|
Type |
findType(NativeType type)
Looks up the runtime-specific type that corresponds to the pseudo-type
|
Type |
findType(TypeAlias type)
Looks up the runtime-specific type that corresponds to the type alias
|
ClosureManager |
getClosureManager()
Gets the native closure manager for this runtime
|
int |
getLastError()
Gets the last native error code.
|
MemoryManager |
getMemoryManager()
Gets the native memory manager for this runtime
|
boolean |
isCompatible(Runtime other)
Indicates whether this Runtime instance is compatible with another Runtime instance.
|
int |
longSize()
Gets the size of a C long integer for this runtime
|
private java.lang.UnsatisfiedLinkError |
newLoadError() |
ObjectReferenceManager |
newObjectReferenceManager()
Creates a new
ObjectReferenceManager |
void |
setLastError(int error)
Sets the native error code.
|
getRuntime, getSystemRuntime
private final java.lang.String message
private final java.lang.Throwable cause
InvalidRuntime(java.lang.String message, java.lang.Throwable cause)
public Type findType(NativeType type)
Runtime
public Type findType(TypeAlias type)
Runtime
public MemoryManager getMemoryManager()
Runtime
getMemoryManager
in class Runtime
MemoryManager
of the runtimepublic ClosureManager getClosureManager()
Runtime
getClosureManager
in class Runtime
ClosureManager
of the runtimepublic ObjectReferenceManager newObjectReferenceManager()
Runtime
ObjectReferenceManager
newObjectReferenceManager
in class Runtime
ObjectReferenceManager
public int getLastError()
Runtime
This returns the errno value that was set at the time of the last native function call.
getLastError
in class Runtime
public void setLastError(int error)
Runtime
setLastError
in class Runtime
error
- The value to set errno to.public long addressMask()
Runtime
addressMask
in class Runtime
public int addressSize()
Runtime
addressSize
in class Runtime
public int longSize()
Runtime
public java.nio.ByteOrder byteOrder()
Runtime
public boolean isCompatible(Runtime other)
Runtime
This is not the same as calling Object.equals(java.lang.Object)
- this method only indicates whether or not artifacts from the
runtime (e.g. memory addresses) are compatible with artifacts from this one.
This is mostly for internal use.
isCompatible
in class Runtime
other
- the other runtime to test for compatibilityprivate java.lang.UnsatisfiedLinkError newLoadError()