Index

A B C D E F G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form

A

AlwaysByReference - Annotation Interface in org.graalvm.nativebridge
Annotation configuring a type as a by reference parameter in the whole annotated compilation unit.
AlwaysByReferenceRepeated - Annotation Interface in org.graalvm.nativebridge
Container for repeated AlwaysByReference annotations.
arrayLengthParameter() - Element in annotation interface org.graalvm.nativebridge.In
Limits copying only to many of the elements given by the arrayLengthParameter parameter.
arrayLengthParameter() - Element in annotation interface org.graalvm.nativebridge.Out
Limits copying only to many of the elements given by the arrayLengthParameter parameter.
arrayOffsetParameter() - Element in annotation interface org.graalvm.nativebridge.In
Copy only a part of the array starting at the offset given by the arrayOffsetParameter method parameter.
arrayOffsetParameter() - Element in annotation interface org.graalvm.nativebridge.Out
Copy only a part of the array starting at offset given by the arrayOffsetParameter method parameter.
asByteBuffer(int) - Method in class org.graalvm.nativebridge.BinaryInput
Returns a read only ByteBuffer backed by the BinaryInput internal buffer.

B

BinaryInput - Class in org.graalvm.nativebridge
A buffer used by the BinaryMarshaller to unmarshal parameters and results passed by value.
BinaryMarshaller<T> - Interface in org.graalvm.nativebridge
A marshaller used by the native bridge processor to read or write method parameters and results of a custom type.
BinaryOutput - Class in org.graalvm.nativebridge
A buffer used by the BinaryMarshaller to marshall parameters and results passed by value.
BinaryOutput.ByteArrayBinaryOutput - Class in org.graalvm.nativebridge
A BinaryOutput backed by a byte array.
BinaryOutput.CCharPointerBinaryOutput - Class in org.graalvm.nativebridge
A BinaryOutput backed by an off-heap memory.
build() - Method in class org.graalvm.nativebridge.JNIConfig.Builder
Builds the JNIConfig.
ByReference - Annotation Interface in org.graalvm.nativebridge
Instruments the native bridge processor to marshall annotated method return type or method parameter as a reference to a foreign object.

C

cleanUp(long) - Method in class org.graalvm.nativebridge.NativeObjectCleaner
At some point after a referent is garbage collected the NativeIsolate is entered and the NativeObjectCleaner.cleanUp(long) is executed with the isolate thread address parameter.
close() - Method in class org.graalvm.nativebridge.BinaryOutput.CCharPointerBinaryOutput
Closes the buffer and frees off-heap allocated resources.
create() - Static method in class org.graalvm.nativebridge.BinaryOutput
Creates a new buffer backed by a byte array.
create(byte[]) - Static method in class org.graalvm.nativebridge.BinaryInput
Creates a new buffer backed by a byte array.
create(byte[]) - Static method in class org.graalvm.nativebridge.BinaryOutput
Creates a new buffer wrapping the initialBuffer.
create(byte[], int) - Static method in class org.graalvm.nativebridge.BinaryInput
Creates a new buffer backed by a byte array only up to a given length.
create(int) - Static method in class org.graalvm.nativebridge.BinaryOutput.ByteArrayBinaryOutput
Creates a new buffer backed by a byte array.
create(int) - Static method in class org.graalvm.nativebridge.BinaryOutput.CCharPointerBinaryOutput
Creates a new buffer backed by an off-heap memory segment.
create(Object) - Static method in class org.graalvm.nativebridge.NativeObjectHandles
Creates a handle for the object.
create(CCharPointer, int) - Static method in class org.graalvm.nativebridge.BinaryInput
Creates a new buffer wrapping an off-heap memory segment starting at an address having length bytes.
create(CCharPointer, int, boolean) - Static method in class org.graalvm.nativebridge.BinaryOutput
Creates a new buffer wrapping an off-heap memory segment starting at address having length bytes.
CustomDispatchAccessor - Annotation Interface in org.graalvm.nativebridge
Marks a method as a custom dispatch accessor.
CustomDispatchFactory - Annotation Interface in org.graalvm.nativebridge
Marks a method as a factory for custom dispatch API objects.
CustomReceiverAccessor - Annotation Interface in org.graalvm.nativebridge
Marks a method as a custom receiver accessor.

D

defaultStackTraceMarshaller() - Static method in class org.graalvm.nativebridge.JNIConfig.Builder
Returns a BinaryMarshaller for stack trace marshalling.
detachCurrentThread() - Method in class org.graalvm.nativebridge.NativeIsolate
 
dispose(JNI.JNIEnv) - Static method in class org.graalvm.nativebridge.JNIClassCache
Disposes cached JNI objects and frees JNI globals.

E

EndPointHandle - Annotation Interface in org.graalvm.nativebridge
Marks a bridge class field as a foreign reference handle.
enter() - Method in class org.graalvm.nativebridge.NativeIsolate
Enters this NativeIsolate on the current thread.
equals(Object) - Method in class org.graalvm.nativebridge.TypeLiteral
 

F

fillInStackTrace() - Method in exception class org.graalvm.nativebridge.MarshalledException
 
fillInStackTrace() - Method in exception class org.graalvm.nativebridge.NativeObjectHandles.InvalidHandleException
 
ForeignException - Exception Class in org.graalvm.nativebridge
This exception is used to transfer a local exception over the boundary.
forIsolateId(long, JNIConfig) - Static method in class org.graalvm.nativebridge.NativeIsolate
Creates a NativeIsolate for the isolateId and JNIConfig.
forThrowable(Throwable, BinaryMarshaller<? super Throwable>) - Static method in exception class org.graalvm.nativebridge.ForeignException
Creates a ForeignException by marshaling the exception using marshaller.

G

GenerateHotSpotToNativeBridge - Annotation Interface in org.graalvm.nativebridge
Generates a HotSpot to native bridge.
GenerateNativeToHotSpotBridge - Annotation Interface in org.graalvm.nativebridge
Generate a native to HotSpot bridge for an annotated class.
GenerateNativeToNativeBridge - Annotation Interface in org.graalvm.nativebridge
Generates a native to native bridge.
get(long) - Static method in class org.graalvm.nativebridge.NativeIsolate
Gets the NativeIsolate object for the entered isolate with the specified isolate address.
getAddress() - Method in class org.graalvm.nativebridge.BinaryOutput.CCharPointerBinaryOutput
Returns an address of an off-heap memory segment containing the marshalled data.
getArray() - Method in class org.graalvm.nativebridge.BinaryOutput.ByteArrayBinaryOutput
Returns the byte array containing the marshalled data.
getConfig() - Method in class org.graalvm.nativebridge.NativeIsolate
Returns the JNIConfig used by this NativeIsolate.
getForeignExceptionClassName() - Method in exception class org.graalvm.nativebridge.MarshalledException
Returns the foreign exception class name.
getHandle() - Method in class org.graalvm.nativebridge.NativeObject
Returns a handle to an object in the native image heap.
getIsolate() - Method in class org.graalvm.nativebridge.NativeIsolateThread
Returns the isolate for this thread.
getIsolate() - Method in class org.graalvm.nativebridge.NativeObject
Returns an isolate in which an object referenced by this handle exists.
getIsolateId() - Method in class org.graalvm.nativebridge.NativeIsolate
Returns the isolate address.
getIsolateThreadId() - Method in class org.graalvm.nativebridge.NativeIsolateThread
Returns the isolate thread address.
getJNICalls() - Static method in exception class org.graalvm.nativebridge.ForeignException
Returns the JNICalls transferring the ForeignException thrown in the HotSpot to an isolate.
getPosition() - Method in class org.graalvm.nativebridge.BinaryOutput.CCharPointerBinaryOutput
 
getPosition() - Method in class org.graalvm.nativebridge.BinaryOutput
Returns this buffer's position.
getRawType() - Method in class org.graalvm.nativebridge.TypeLiteral
Returns the raw class type of the literal.
getType() - Method in class org.graalvm.nativebridge.TypeLiteral
Returns the type literal including generic type information.

H

hashCode() - Method in class org.graalvm.nativebridge.TypeLiteral
 

I

Idempotent - Annotation Interface in org.graalvm.nativebridge
Enables the return value caching.
In - Annotation Interface in org.graalvm.nativebridge
Configures an array parameter as an in-parameter.
include() - Element in annotation interface org.graalvm.nativebridge.GenerateHotSpotToNativeBridge
If the supplier returns true, the bridge entry points are added automatically when building a shared library.
include() - Element in annotation interface org.graalvm.nativebridge.GenerateNativeToNativeBridge
If the supplier returns true, the bridge entry points are added automatically when building a shared library.
inferSize(T) - Method in interface org.graalvm.nativebridge.BinaryMarshaller
Estimates a size in bytes needed to marshall given object.
inferUpdateSize(T) - Method in interface org.graalvm.nativebridge.BinaryMarshaller
Estimates a size in bytes needed to marshall Out parameter passed back to caller from a foreign method call.
isActive() - Method in class org.graalvm.nativebridge.NativeIsolate
Returns true if the current thread is entered to this NativeIsolate.
isDisposed() - Method in class org.graalvm.nativebridge.NativeIsolate
 
isTypedValue(Object) - Static method in class org.graalvm.nativebridge.BinaryOutput
Returns true if a value is a typed value writable using BinaryOutput.writeTypedValue(Object), else false.

J

JNIClassCache - Class in org.graalvm.nativebridge
Support class for JNI.JClass lookup.
jniConfig() - Element in annotation interface org.graalvm.nativebridge.GenerateHotSpotToNativeBridge
The native bridge configuration.
jniConfig() - Element in annotation interface org.graalvm.nativebridge.GenerateNativeToHotSpotBridge
The native bridge configuration.
jniConfig() - Element in annotation interface org.graalvm.nativebridge.GenerateNativeToNativeBridge
The native bridge configuration.
JNIConfig - Class in org.graalvm.nativebridge
A configuration used by the NativeIsolate and classes generated by the native bridge processor.
JNIConfig.Builder - Class in org.graalvm.nativebridge
A builder class to construct JNIConfig instances.

L

leave() - Method in class org.graalvm.nativebridge.NativeIsolateThread
Leaves the NativeIsolate on the current thread.
length - Variable in class org.graalvm.nativebridge.BinaryInput
 
lookupClass(JNI.JNIEnv, Class<?>) - Static method in class org.graalvm.nativebridge.JNIClassCache
Looks up JClass using a Class.
lookupClass(JNI.JNIEnv, String) - Static method in class org.graalvm.nativebridge.JNIClassCache
Looks up JClass using a fully qualified name.
lookupMarshaller(Class<T>, Class<? extends Annotation>...) - Method in class org.graalvm.nativebridge.JNIConfig
Looks up BinaryMarshaller for the type and annotationTypes.
lookupMarshaller(TypeLiteral<T>, Class<? extends Annotation>...) - Method in class org.graalvm.nativebridge.JNIConfig
Looks up BinaryMarshaller for the parameterizedType and annotationTypes.

M

MarshalledException - Exception Class in org.graalvm.nativebridge
An exception representing an exception thrown over the isolate boundary.
MarshalledException(String, String, StackTraceElement[]) - Constructor for exception class org.graalvm.nativebridge.MarshalledException
Creates a MarshalledException for foreign exception of the foreignExceptionClassName type with the foreignExceptionMessage message.
MarshallerAnnotation - Annotation Interface in org.graalvm.nativebridge
Meta-annotation that marks an annotation to be used for marshaller lookup.
mergeStackTrace(StackTraceElement[]) - Static method in exception class org.graalvm.nativebridge.ForeignException
Merges foreign stack trace marshalled in the ForeignException with local ForeignException's stack trace.

N

NativeIsolate - Class in org.graalvm.nativebridge
Represents a single native image isolate.
NativeIsolateThread - Class in org.graalvm.nativebridge
Represents an entered isolate thread.
NativeObject - Class in org.graalvm.nativebridge
Encapsulates a handle to an object in a native image heap where the object's lifetime is bound to the lifetime of the NativeObject instance.
NativeObject(NativeIsolate, long) - Constructor for class org.graalvm.nativebridge.NativeObject
Creates a new NativeObject.
NativeObjectCleaner<T> - Class in org.graalvm.nativebridge
A weak reference performing a given action when a referent becomes weakly reachable and is enqueued into reference queue.
NativeObjectCleaner(T, NativeIsolate) - Constructor for class org.graalvm.nativebridge.NativeObjectCleaner
Creates a new NativeObjectCleaner.
NativeObjectHandles - Class in org.graalvm.nativebridge
A support class for mapping objects in the native image isolate to long handles.
NativeObjectHandles.InvalidHandleException - Exception Class in org.graalvm.nativebridge
An exception thrown when an invalid handle is resolved.
newBuilder() - Static method in class org.graalvm.nativebridge.JNIConfig
 
nullable(BinaryMarshaller<T>) - Static method in interface org.graalvm.nativebridge.BinaryMarshaller
Decorates forMarshaller by a BinaryMarshaller handling null values.

O

openJNIMethodScope(String, JNI.JNIEnv) - Static method in exception class org.graalvm.nativebridge.ForeignException
Opens a JNIMethodScope for a call from HotSpot to a native method.
org.graalvm.nativebridge - package org.graalvm.nativebridge
 
Out - Annotation Interface in org.graalvm.nativebridge
Configures an array parameter as an out-parameter.

P

pos - Variable in class org.graalvm.nativebridge.BinaryInput
 
pos - Variable in class org.graalvm.nativebridge.BinaryOutput
 
processPendingCleaners() - Static method in class org.graalvm.nativebridge.NativeObjectCleaner
Performs an explicit clean up of enqueued NativeObjectCleaners.

R

RawReference - Annotation Interface in org.graalvm.nativebridge
Instruments the native bridge processor to marshall annotated method return type or method parameter as a pointer value stored as Java long type.
read() - Method in class org.graalvm.nativebridge.BinaryInput
Reads a single byte.
read(boolean[], int, int) - Method in class org.graalvm.nativebridge.BinaryInput
Reads len bytes into a boolean array starting at offset off.
read(byte[], int, int) - Method in class org.graalvm.nativebridge.BinaryInput
Reads len bytes into a byte array starting at offset off.
read(char[], int, int) - Method in class org.graalvm.nativebridge.BinaryInput
Reads len chars into a char array starting at offset off.
read(double[], int, int) - Method in class org.graalvm.nativebridge.BinaryInput
Reads len doubles into a double array starting at offset off.
read(float[], int, int) - Method in class org.graalvm.nativebridge.BinaryInput
Reads len floats into a float array starting at offset off.
read(int[], int, int) - Method in class org.graalvm.nativebridge.BinaryInput
Reads len ints into an int array starting at offset off.
read(long[], int, int) - Method in class org.graalvm.nativebridge.BinaryInput
Reads len longs into a long array starting at offset off.
read(short[], int, int) - Method in class org.graalvm.nativebridge.BinaryInput
Reads len shorts into a short array starting at offset off.
read(BinaryInput) - Method in interface org.graalvm.nativebridge.BinaryMarshaller
Deserializes and recreates an object passed to a foreign method.
readBoolean() - Method in class org.graalvm.nativebridge.BinaryInput
Reads a single byte and returns true if that byte is non-zero, false if that byte is zero.
readByte() - Method in class org.graalvm.nativebridge.BinaryInput
Reads and returns a single byte.
readChar() - Method in class org.graalvm.nativebridge.BinaryInput
Reads two bytes and returns a char value.
readDouble() - Method in class org.graalvm.nativebridge.BinaryInput
Reads eight bytes and returns a double value.
readFloat() - Method in class org.graalvm.nativebridge.BinaryInput
Reads four bytes and returns a float value.
readInt() - Method in class org.graalvm.nativebridge.BinaryInput
Reads four bytes and returns an int value.
readLong() - Method in class org.graalvm.nativebridge.BinaryInput
Reads eight bytes and returns a long value.
readShort() - Method in class org.graalvm.nativebridge.BinaryInput
Reads two bytes and returns a short value.
readTypedValue() - Method in class org.graalvm.nativebridge.BinaryInput
Reads a single value, using the data type encoded in the marshalled data.
readUpdate(BinaryInput, T) - Method in interface org.graalvm.nativebridge.BinaryMarshaller
Deserializes and updates the mutable state of a given object to support Out semantics.
readUTF() - Method in class org.graalvm.nativebridge.BinaryInput
Reads a string using a modified UTF-8 encoding in a machine-independent manner.
ReceiverMethod - Annotation Interface in org.graalvm.nativebridge
The ReceiverMethod allows you to provide a custom method implementation in the generated type but still generate the over the boundary call.
register() - Method in class org.graalvm.nativebridge.NativeObjectCleaner
Registers NativeObjectCleaner for cleanup.
registerMarshaller(Class<T>, Class<? extends Annotation>, BinaryMarshaller<T>) - Method in class org.graalvm.nativebridge.JNIConfig.Builder
Registers a BinaryMarshaller for the type and annotationType.
registerMarshaller(Class<T>, BinaryMarshaller<T>) - Method in class org.graalvm.nativebridge.JNIConfig.Builder
Registers a BinaryMarshaller for the type.
registerMarshaller(TypeLiteral<T>, Class<? extends Annotation>, BinaryMarshaller<T>) - Method in class org.graalvm.nativebridge.JNIConfig.Builder
Registers a BinaryMarshaller for the parameterizedType and annotationType.
registerMarshaller(TypeLiteral<T>, BinaryMarshaller<T>) - Method in class org.graalvm.nativebridge.JNIConfig.Builder
Registers a BinaryMarshaller for the parameterizedType.
registerNativeThread(long) - Method in class org.graalvm.nativebridge.NativeIsolate
Binds a native image thread to this isolate.
release() - Method in class org.graalvm.nativebridge.NativeObject
Explicitly releases object in the native image heap referenced by this handle.
remove(long) - Static method in class org.graalvm.nativebridge.NativeObjectHandles
Removes a handle.
resolve(long, Class<T>) - Static method in class org.graalvm.nativebridge.NativeObjectHandles
Resolves a handle into an object.

S

setAttachThreadAction(LongUnaryOperator) - Method in class org.graalvm.nativebridge.JNIConfig.Builder
Registers a callback used by the NativeIsolate to attach the current thread to an isolate.
setDetachThreadAction(LongUnaryOperator) - Method in class org.graalvm.nativebridge.JNIConfig.Builder
Registers a callback used by the NativeIsolate to detach the current thread from an isolate.
setNativeThreadLocalFactory(Function<Supplier<NativeIsolateThread>, ThreadLocal<NativeIsolateThread>>) - Method in class org.graalvm.nativebridge.JNIConfig.Builder
Registers a thread local factory whenever the default thread local handling should be overriden.
setReleaseNativeObjectAction(LongBinaryOperator) - Method in class org.graalvm.nativebridge.JNIConfig.Builder
Registers a callback used by the NativeObject to free an object in a native image heap referenced by the garbage-collected handle.
setShutDownIsolateAction(LongBinaryOperator) - Method in class org.graalvm.nativebridge.JNIConfig.Builder
Registers a callback used by the NativeIsolate to tear down the isolate.
shutdown() - Method in class org.graalvm.nativebridge.NativeIsolate
Requests an isolate shutdown.
skip(int) - Method in class org.graalvm.nativebridge.BinaryOutput.ByteArrayBinaryOutput
 
skip(int) - Method in class org.graalvm.nativebridge.BinaryOutput.CCharPointerBinaryOutput
 
skip(int) - Method in class org.graalvm.nativebridge.BinaryOutput
Reserves a buffer space.
startPointClass() - Element in annotation interface org.graalvm.nativebridge.AlwaysByReference
The class to instantiate for a foreign handle.

T

throwOriginalException(BinaryMarshaller<? extends Throwable>) - Method in exception class org.graalvm.nativebridge.ForeignException
Unmarshalls the foreign exception transferred by this ForeignException and re-throws it.
throwUsingJNI(JNI.JNIEnv) - Method in exception class org.graalvm.nativebridge.ForeignException
Re-throws this exception in host using a JNI API.
toString() - Method in exception class org.graalvm.nativebridge.MarshalledException
 
toString() - Method in class org.graalvm.nativebridge.NativeIsolate
 
toString() - Method in class org.graalvm.nativebridge.TypeLiteral
 
trimToResult() - Element in annotation interface org.graalvm.nativebridge.Out
Limits copying only to method result number of elements.
tryEnter() - Method in class org.graalvm.nativebridge.NativeIsolate
Tries to enter this NativeIsolate on the current thread.
type() - Element in annotation interface org.graalvm.nativebridge.AlwaysByReference
Method parameter or return type that should always be handled as a ByReference in the annotated compilation unit.
TypeLiteral<T> - Class in org.graalvm.nativebridge
Represents a generic type T.
TypeLiteral() - Constructor for class org.graalvm.nativebridge.TypeLiteral
Constructs a new type literal.

U

useCustomReceiverAccessor() - Element in annotation interface org.graalvm.nativebridge.ByReference
For classes with a custom dispatch, when set to true the foreign object is translated by a custom receiver accessor before it's passed to the target method.

V

value() - Element in annotation interface org.graalvm.nativebridge.AlwaysByReferenceRepeated
 
value() - Element in annotation interface org.graalvm.nativebridge.ByReference
The class to instantiate for a foreign handle.
value() - Element in annotation interface org.graalvm.nativebridge.ReceiverMethod
 

W

write(boolean[], int, int) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes len bytes from the boolean array starting at offset off.
write(byte[], int, int) - Method in class org.graalvm.nativebridge.BinaryOutput.ByteArrayBinaryOutput
 
write(byte[], int, int) - Method in class org.graalvm.nativebridge.BinaryOutput.CCharPointerBinaryOutput
 
write(byte[], int, int) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes len bytes from the byte array starting at offset off.
write(char[], int, int) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes len chars from the array starting at offset off.
write(double[], int, int) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes len doubles from the array starting at offset off.
write(float[], int, int) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes len floats from the array starting at offset off.
write(int) - Method in class org.graalvm.nativebridge.BinaryOutput.ByteArrayBinaryOutput
 
write(int) - Method in class org.graalvm.nativebridge.BinaryOutput.CCharPointerBinaryOutput
 
write(int) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes the lowest byte of the argument as a single byte value.
write(int[], int, int) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes len ints from the array starting at offset off.
write(long[], int, int) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes len longs from the array starting at offset off.
write(short[], int, int) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes len shorts from the array starting at offset off.
write(BinaryOutput, T) - Method in interface org.graalvm.nativebridge.BinaryMarshaller
Decomposes and serializes the given object passed to a foreign method.
writeBoolean(boolean) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes a boolean as a single byte value.
writeByte(int) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes a byte as a single byte value.
writeChar(int) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes a char as two bytes, high byte first.
writeDouble(double) - Method in class org.graalvm.nativebridge.BinaryOutput
Converts a double value to a long using the Double.doubleToLongBits(double), and then writes that long as eight bytes, high byte first.
writeFloat(float) - Method in class org.graalvm.nativebridge.BinaryOutput
Converts a float value to an int using the Float.floatToIntBits(float), and then writes that int as four bytes, high byte first.
writeInt(int) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes an int as four bytes, high byte first.
writeLong(long) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes a long as eight bytes, high byte first.
writeShort(int) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes a short as two bytes, high byte first.
writeTypedValue(Object) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes the value that is represented by the given object, together with information on the value's data type.
writeUpdate(BinaryOutput, T) - Method in interface org.graalvm.nativebridge.BinaryMarshaller
Decomposes and serializes the mutable state of a given object to support Out semantics.
writeUTF(String) - Method in class org.graalvm.nativebridge.BinaryOutput
Writes a string using a modified UTF-8 encoding in a machine-independent manner.
A B C D E F G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form