# truffle-api 25.6.0-elide.4 > API reference for truffle-api. Each page below is Markdown; the HTML page of the same name has the same content. llms-full.txt has every page in one file, and api.json is the apidocs/1 model. ## When to use this Use this API reference when you write, read or review code that uses truffle-api 25.6.0-elide.4. ## Overview - [⬢ truffle-api](index.md): packages and types - [Alphabetical index](index-all.md): find `Type.member` or search by behavior. Check the declaring type and overload, then follow the matching link. - [Declaration contracts](contracts.ndjson): full structured records for a known `Type.member`, including documented parameters, returns and throws. - [llms-full.txt](llms-full.txt): every page in one file - [api.json](api.json): the apidocs/1 model ## Pages - [▣ Package com.oracle.truffle.api](com/oracle/truffle/api/index.md): Do you want to implement your own Truffle based language? In such case start here. - [◆ ArrayUtils (class in com.oracle.truffle.api)](com/oracle/truffle/api/ArrayUtils.md): This class provides additional operations for String as well as character and byte arrays, which may be intrinsified by a compiler. indexOf(String, int, …): Returns the index of the first occurrence of any character contained in values in string, bounded by fromIndex (inclusive) and maxIndex (exclusive). Returns: the index of the first occurrence of indexOf(char\[\], int, …): Returns the index of the first occurrence of any character contained in values in array, bounded by fromIndex (inclusive) and maxIndex (exclusive). Returns: the index of the first occurrence of a indexOf(byte\[\], int, …): Returns the index of the first occurrence of any byte contained in values in array, bounded by fromIndex (inclusive) and maxIndex (ex - [◇ Assumption (interface in com.oracle.truffle.api)](com/oracle/truffle/api/Assumption.md): An assumption is a global boolean flag that starts with the value true (i.e., the assumption is valid) and can subsequently be invalidated (using Assumption.invalidate()). ALWAYS_VALID: An assumption that is always valid and fails with an UnsupportedOperationException if invalidated. NEVER_VALID: An assumption that is never valid. check(): Checks that this assumption is still valid. Throws: InvalidAssumptionException - If the assumption is no longer valid. isValid(): Checks whether the assumption is still valid. Returns: a boolean value indicating the validity of the assumption invalidate(): Invalidates this assumption. invalidate(String): Invalidates this assumption. getName(): A name for the assumption that is used for debug output. Returns: the name of the as - [◇ CallTarget (interface in com.oracle.truffle.api)](com/oracle/truffle/api/CallTarget.md): Represents the target of a call. call(Object...): Calls the encapsulated root node with the given arguments and returns the result. Returns: The result of the call. call(Node, Object...): Calls the encapsulated root node with an explicit call location and arguments, and returns the result. Returns: The result of the call. call(Node, int, Object\[\]): Calls the root node, preserving the explicit location and BCI for stack walking. Returns: the result of the call. - [◆ CompilerAsserts (class in com.oracle.truffle.api)](com/oracle/truffle/api/CompilerAsserts.md): Assertions about the code produced by the Truffle compiler. neverPartOfCompilation(): Assertion that this code position should never be reached during compilation. neverPartOfCompilation(String): Assertion that this code position should never be reached during compilation. compilationConstant(Object): Assertion that the corresponding value is reduced to a constant during compilation. partialEvaluationConstant(Object): Assertion that the corresponding value is reduced to a constant during the initial partial evaluation phase. partialEvaluationConstant(boolean): Specialized version of CompilerAsserts.compilationConstant(Object) for boolean values. partia - [◆ CompilerDirectives (class in com.oracle.truffle.api)](com/oracle/truffle/api/CompilerDirectives.md): Directives that influence the optimizations of the Truffle compiler. transferToInterpreter(): Directive for the compiler to discontinue compilation at this code position and instead insert a transfer to the interpreter. transferToInterpreterAndInvalidate(): Directive for the compiler to discontinue compilation at this code position and instead insert a transfer to the interpreter, invalidating the currently executing machine code. inInterpreter(): Returns a boolean value indicating whether the method is executed in the interpreter. Returns: true when executed in the interpreter, false in compiled code. hasNextTier(): Returns a boolean value indicating whether t - [@ CompilerDirectives.CompilationFinal (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/CompilerDirectives.CompilationFinal.md): Marks fields that should be considered final for a Truffle compilation although they are not final while executing in the interpreter. dimensions(): Specifies the number of array dimensions to be marked as compilation final. - [@ CompilerDirectives.EarlyEscapeAnalysis (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/CompilerDirectives.EarlyEscapeAnalysis.md): Requests the Truffle compiler to run escape analysis on this method before partial evaluation. - [@ CompilerDirectives.EarlyInline (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/CompilerDirectives.EarlyInline.md): Marks a method or constructor as a candidate for early inlining during Truffle compilation. - [@ CompilerDirectives.TruffleBoundary (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/CompilerDirectives.TruffleBoundary.md): Marks a method that it is considered as a boundary for Truffle partial evaluation. transferToInterpreterOnException(): Determines whether execution should be transferred to the interpreter if an exception is thrown across this boundary, in which case the caller's compiled code is invalidated and will n allowInlining(): Considers this Truffle boundary invoke as an inlining candidate. - [@ CompilerDirectives.ValueType (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/CompilerDirectives.ValueType.md): Marks classes as value types. - [◆ ContextLocal (abstract class in com.oracle.truffle.api)](com/oracle/truffle/api/ContextLocal.md): A context local reference that refers to a value that is created for each polyglot context. ContextLocal(Object): Custom subclasses of context local are not allowed. get(): Returns the context local value for the currently entered context. Throws: IllegalStateException - if assertions (-ea) are enabled and no current context is entered on the current thread, context locals have alrea get(TruffleContext): Returns the context local value for an explicit context. Throws: IllegalStateException - if assertions (-ea) are enabled and context locals have already been cleared for the specified context, the co - [◆ ContextThreadLocal (abstract class in com.oracle.truffle.api)](com/oracle/truffle/api/ContextThreadLocal.md): A context thread local reference that refers to a value that is created for each polyglot context and thread. ContextThreadLocal(Object): Custom subclasses of context local are not allowed. get(): Returns the context thread local value for the currently entered context and thread. get(Thread): Returns the context thread local value for the currently entered context and the given thread. get(TruffleContext): Returns the context thread local value for the given context and the current thread.his method is intended to be used on compiled code paths. get(TruffleContext, Thread): Returns the context thread local value for the given context and the given thread. - [◆ ExactMath (class in com.oracle.truffle.api)](com/oracle/truffle/api/ExactMath.md): This class contains exact math related methods that are generally useful for dynamic language implementations. truncate(float): Removes the decimal part (aka truncation or rounds towards zero) of the given float. truncate(double): Removes the decimal part (aka truncation or rounds towards zero) of the given double. truncateToUnsignedLong(double): Converts the double value to unsigned long with truncation (i.e. Returns: the unsigned integer result, wrapped in a signed integer truncateToUnsignedLong(float): Converts the float value to unsigned long with truncation (i.e. Returns: the unsigned integer result, wrapped in a signed integer truncateToUnsignedInt(double): Converts the double value to unsigned l - [◆ HostCompilerDirectives (class in com.oracle.truffle.api)](com/oracle/truffle/api/HostCompilerDirectives.md): Directives that influence the optimizations of the host compiler. inInterpreterFastPath(): Indicates whether a branch is executed only in the interpreter. Returns: true if executed in the interpreter, false in compiled code. markThreadedSwitch(int): Marks a switch statement within a loop as a candidate for threaded switch optimization. - [@ HostCompilerDirectives.BytecodeInterpreterFetchOpcode (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/HostCompilerDirectives.BytecodeInterpreterFetchOpcode.md): Annotates a method that fetches the next opcode. - [@ HostCompilerDirectives.BytecodeInterpreterHandler (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/HostCompilerDirectives.BytecodeInterpreterHandler.md): Annotates a method that serves as a Truffle interpreter bytecode handler, that is, a method implements the complete semantics of a single bytecode instruction. value(): The handled bytecode's opcodes. threading(): Indicates whether to enable tail call threading at the end of this handler. safepoint(): Indicates whether host safepoint should be inserted in the stub correspond to this handler. - [@ HostCompilerDirectives.BytecodeInterpreterHandlerConfig (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/HostCompilerDirectives.BytecodeInterpreterHandlerConfig.md): Configuration for all bytecode interpreter handler arguments, including the receiver. maximumOperationCode(): The maximum unsigned value of the opcode. arguments(): Configuration for each method argument. secondarySwitch(): Indicates that the annotated method implements a secondary partition of a bytecode interpreter switch. Returns: true if the annotated method is a secondary switch partition whose handler calls must not enableTailDuplication(): Enables tail duplication for this interpreter's threaded bytecode handler stubs. - [@ HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.md): Configuration for a bytecode interpreter handler argument. returnValue(): Indicates that this argument will be updated with the return value of the handler. expand(): Indicates that this argument will be expanded in a Truffle interpreter bytecode handler stub if its expansion kind is not ExpansionKind.NONE. expandedType(): Exact concrete type reconstructed for a ExpansionKind.VIRTUAL argument. fields(): Indicates the fields to be expanded of this argument if its expansion kind is ExpansionKind.MATERIALIZED. nonNull(): Indicates that this argument is always non-null. - [≡ HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind (enum class in com.oracle.truffle.api)](com/oracle/truffle/api/HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind.md): NONE: No expansion. MATERIALIZED: The argument is expanded into its subfields in addition to the original argument. VIRTUAL: The argument is expanded into its subfields without the original argument. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [@ HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.Field (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.Field.md): Configuration for an expanded field. name(): Name of the field. nonNull(): Indicates that this field is always non-null. templateVariable(): Marks this field as template state for threaded bytecode handlers. validWhen(): Names the template-variable field on the same virtual-expanded argument that controls whether this field's incoming value is valid. valid(): Values of validWhen() for which the incoming field value is valid. - [@ HostCompilerDirectives.BytecodeInterpreterSwitch (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/HostCompilerDirectives.BytecodeInterpreterSwitch.md): Marks a method that is an implementation of a Truffle interpreter, and which should receive additional optimization budget. - [@ HostCompilerDirectives.InliningCutoff (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/HostCompilerDirectives.InliningCutoff.md): Hints to Truffle host inlining that a particular method is partial evaluatable, but it would be a good place for a cutoff when performing host inlining. - [@ HostCompilerDirectives.InliningRoot (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/HostCompilerDirectives.InliningRoot.md): Marks a method as a candidate for Truffle host inlining. - [◆ InstrumentInfo (class in com.oracle.truffle.api)](com/oracle/truffle/api/InstrumentInfo.md): Represents public information about an instrument. getId(): Gets the id clients can use to acquire this instrument. Returns: this instrument's unique id getName(): Gets a human readable name of this instrument. Returns: this instrument's user-friendly name getVersion(): Gets the version of this instrument. Returns: this instrument's version - [◇ InternalResource (interface in com.oracle.truffle.api)](com/oracle/truffle/api/InternalResource.md): Represents an internal resource of a language that can be lazily unpacked to a cache user directory. unpackFiles(InternalResource.Env, Path): Unpacks all resources to a given target directory. Throws: IOException versionHash(InternalResource.Env): Returns the version hash to be used for this resource. Throws: IOException - [≡ InternalResource.CPUArchitecture (enum class in com.oracle.truffle.api)](com/oracle/truffle/api/InternalResource.CPUArchitecture.md): Represents a supported CPU architecture. AARCH64: The ARMv8 64-bit architecture. AMD64: The x86 64-bit architecture. UNSUPPORTED: Represents an unsupported architecture. toString(): Returns the string representing CPU architecture name. getCurrent(): Returns the current CPU architecture. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [◆ InternalResource.Env (class in com.oracle.truffle.api)](com/oracle/truffle/api/InternalResource.Env.md): Access to common utilities for unpacking resource files. inContextPreinitialization(): Returns true if the engine causing the resource unpacking is being pre-initialized. inNativeImageBuild(): Returns true if resource unpacking happens during the native image build. getCPUArchitecture(): Returns the current processor architecture. getOS(): Returns the current operating system. readResourceLines(Path): Reads a resource from the module, which owns the InternalResource implementation class. Returns: the lines from the resource as a List Throws: IOException - in case of IO error unpackResourceFiles(Path, Path, …): Extracts files from the module, which o - [@ InternalResource.Id (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/InternalResource.Id.md): The annotation used to lookup InternalResource by an id. value(): An internal resource identifier that is a valid path component and unique per language. componentId(): A Truffle language or instrument identifier for which the resource is registered. optional(): Marks the annotated resource as optional. - [≡ InternalResource.OS (enum class in com.oracle.truffle.api)](com/oracle/truffle/api/InternalResource.OS.md): Represents a supported operating system. DARWIN: The macOS operating system. LINUX: The Linux operating system. WINDOWS: The Windows operating system. UNSUPPORTED: Represents an unsupported operating system. toString(): Returns the string representing operating system name. getCurrent(): Returns the current operating system. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [⚡︎ OptimizationFailedException (exception in com.oracle.truffle.api)](com/oracle/truffle/api/OptimizationFailedException.md) - [@ Option (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/Option.md): Describes the attributes of an option whose value is in a static field annotated by this annotation. name(): Returns a custom name for the option. help(): Returns a help message for the option. deprecated(): Returns true if this option is deprecated. deprecationMessage(): Returns the deprecation reason and the recommended fix. category(): Specifies the category of the option. stability(): Defines the stability of this option. usageSyntax(): Describes in short the syntax of accepted values for this option. sandbox(): Specifies the most strict sandbox policy in which the option can be used. - [@ Option.Group (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/Option.Group.md): Must be applied on classes containing option fields to specify a name prefix if the prefix cannot be inferred by language or instrument. value(): A set of group names that are used as prefix for all options of the annotated class. - [◇ ReplaceObserver (interface in com.oracle.truffle.api)](com/oracle/truffle/api/ReplaceObserver.md): An observer that is notified whenever a child node is replaced. nodeReplaced(Node, Node, CharSequence): Returns true if the event is consumed and no parent nodes should be notified by for replaces. - [◇ RootCallTarget (interface in com.oracle.truffle.api)](com/oracle/truffle/api/RootCallTarget.md): Represents the target of a call to a RootNode, i.e., to another tree of nodes. - [◆ ThreadLocalAction (abstract class in com.oracle.truffle.api)](com/oracle/truffle/api/ThreadLocalAction.md): Represents an action that is executed at a safepoint location of the guest language execution. ThreadLocalAction(boolean, boolean): Creates a new thread local action. ThreadLocalAction(boolean, boolean, boolean): Creates a new thread local action. perform(ThreadLocalAction.Access): Performs the thread local action on a given thread. notifyBlocked(ThreadLocalAction.Access): Callback for notifying the thread local action that its processing has been blocked due to a blocked call. notifyUnblocked(ThreadLocalAction.Access): Callback for notifying the thread local action that its processing has been unblocked during or while leaving a blocked call. - [◆ ThreadLocalAction.Access (abstract class in com.oracle.truffle.api)](com/oracle/truffle/api/ThreadLocalAction.Access.md): Argument class for ThreadLocalAction.perform(Access). Access(Object): Constructor for framework use only. Access(AbstractPolyglotImpl): Constructor for framework use only. getLocation(): Returns the current node location executing on this thread. getThread(): Returns the thread where this thread local action is running on. - [◆ Truffle (class in com.oracle.truffle.api)](com/oracle/truffle/api/Truffle.md): Class for obtaining the Truffle runtime singleton object of this virtual machine. getRuntime(): Gets the singleton TruffleRuntime object. - [◆ TruffleContext (class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleContext.md): A handle on a context of a set of Truffle languages. getParent(): Get a parent context of this context, if any. Returns: a parent context, or null if there is no parent enter(Node): Enters this context and returns an object representing the previous context. initializeInternal(Node, String): Forces initialization of an internal or public language. Returns: true if the language was initialized, else false, e.g. if the language as already initialized. Throws: IllegalStateExcep initializePublic(Node, String): The same as initializeInternal(Node, String), but only public languages are accessible. Returns: true if the language was initialized, else f - [◆ TruffleContext.Builder (class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleContext.Builder.md): Builder class to create new TruffleContext instances. config(String, Object): Sets a config parameter that the child context of this language can access using Env.getConfig(). initializeCreatorContext(boolean): Specifies whether the creating language context should be initialized in the new context. out(OutputStream): Sets the standard output stream to be used for the context. err(OutputStream): Sets the error output stream to be used for the context. in(InputStream): Sets the input stream to be used for the context. forceSharing(Boolean): Force enables or disables code sharing for this inner context. option(String, String): Overrides an option o - [◆ TruffleFile (class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleFile.md): An abstract representation of a file used by Truffle languages. LAST_MODIFIED_TIME: The file's last modified time. LAST_ACCESS_TIME: The file's last access time. CREATION_TIME: The file's creation time. IS_REGULAR_FILE: Represents the file a regular file. IS_DIRECTORY: Represents the file a directory. IS_SYMBOLIC_LINK: Represents the file a symbolic link. IS_OTHER: Represents the file a special file (device, named pipe). SIZE: The file's size in bytes. - [◆ TruffleFile.AttributeDescriptor (class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleFile.AttributeDescriptor.md): Represents a file's attribute. - [◆ TruffleFile.Attributes (class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleFile.Attributes.md): A view over file's attributes values obtained by getAttributes. get(TruffleFile.AttributeDescriptor): Returns the attribute value. Returns: the attribute value, may return null if the filesystem doesn't support the attribute. Throws: IllegalArgumentException - if the view was not cre - [◆ TruffleFile.FileStoreInfo (class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleFile.FileStoreInfo.md): Provides information about the file store. getTotalSpace(): Returns the size, in bytes, of the file store. Returns: the size of the file store in bytes Throws: UnsupportedOperationException - if the file system does not support retrieving file store information T getUnallocatedSpace(): Returns the number of unallocated bytes in the file store. Returns: the number of unallocated bytes Throws: UnsupportedOperationException - if the file system does not support retrieving file store getUsableSpace(): Returns the number of bytes available to this Java virtual machine on the file store. Returns: the number of usable bytes available to this - [◇ TruffleFile.FileTypeDetector (interface in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleFile.FileTypeDetector.md): A detector for finding file's MIME type and encoding. findMimeType(TruffleFile): Finds a MIME type for given TruffleFile. Returns: the MIME type or null if the MIME type is not recognized Throws: IOException - of an I/O error occurs Throws: SecurityException - if the implem findEncoding(TruffleFile): For a file containing an encoding information returns the encoding. Returns: the file encoding or null if the file does not provide encoding Throws: IOException - of an I/O error occurs Throws: - [◆ TruffleLanguage (abstract class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleLanguage.md): A Truffle language implementation contains all the services a language should provide to make it composable with other languages. TruffleLanguage(): Constructor to be called by subclasses. locals: Provider for creating context local and context thread local references. areOptionsCompatible(OptionValues, OptionValues): Returns true if the combination of two sets of options allow to share or reuse the same language instance, else false. createContext(TruffleLanguage.Env): Creates internal representation of the executing context suitable for given environment. Returns: internal data of the language in given environment or null initializeContext(C): Perform any complex initialization. Throws: Exception - if something goes wr - [◇ TruffleLanguage.ContextLocalFactory (interface in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleLanguage.ContextLocalFactory.md): Context local factory for Truffle languages. create(C): Returns a new value for a context local of a language. - [◆ TruffleLanguage.ContextLocalProvider (class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleLanguage.ContextLocalProvider.md): Provider for creating context local and context thread local references. createContextLocal(TruffleLanguage.ContextLocalFactory): Creates a new context local reference for this Truffle language. createContextThreadLocal(TruffleLanguage.ContextThreadLocalFactory): Creates a new context thread local reference for this Truffle language. - [≡ TruffleLanguage.ContextPolicy (enum class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleLanguage.ContextPolicy.md): Defines the supported policy for reusing languages per context. EXCLUSIVE: Use one exclusive TruffleLanguage instance per language context instance. REUSE: Use a single TruffleLanguage instance per context instance, but allow the reuse of a language instance when a context was disposed. SHARED: Use one TruffleLanguage instance for many language context instances. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [◆ TruffleLanguage.ContextReference (abstract class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleLanguage.ContextReference.md): Represents a reference to the current context. ContextReference(): Constructors for subclasses. get(Node): Returns the current language context associated with the current thread. create(Class): Creates a new instance of a context reference for an registered language. - [◇ TruffleLanguage.ContextThreadLocalFactory (interface in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleLanguage.ContextThreadLocalFactory.md): Context thread local factory for Truffle languages. create(C, Thread): Returns a new value for a context thread local for a language context and thread. - [◆ TruffleLanguage.Env (class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleLanguage.Env.md): Represents execution environment of the TruffleLanguage. getOptions(): Returns option values for the options described in TruffleLanguage.getOptionDescriptors(). getApplicationArguments(): Returns the application arguments that were provided for this context. isCreateThreadAllowed(): Returns true if the creation of new threads is allowed in the current environment. createThread(Runnable): Deprecated. Use newTruffleThreadBuilder(Runnable) instead. Creates a new thread that has access to the current language context. createThread(Runnable, TruffleContext): Deprecated. Use newTruffleThreadBuilder(Runnable) instead. Creates a new thread that has access - [≡ TruffleLanguage.ExitMode (enum class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleLanguage.ExitMode.md): Mode of exit operation. NATURAL: Natural exit that occurs during normal context close. HARD: Hard exit triggered by TruffleContext.closeExited(Node, int). values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [◆ TruffleLanguage.InlineParsingRequest (class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleLanguage.InlineParsingRequest.md): Request for inline parsing. getSource(): The source code to parse. Returns: the source code, never null getOptionValues(): Returns the source option values associated with the parsing request's source and language. getLocation(): Specifies the code location for parsing. Returns: a Node defining AST context for the parsing, it's never null getFrame(): Specifies the execution context for parsing. Returns: a MaterializedFrame exposing the current execution state or null if there is none - [◆ TruffleLanguage.LanguageReference (abstract class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleLanguage.LanguageReference.md): Represents a reference to the current language instance. LanguageReference(): Constructors for subclasses. get(Node): Returns the current language instance associated with the current thread. create(Class): Creates a new instance of a langauge reference for an registered language. - [◆ TruffleLanguage.ParsingRequest (class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleLanguage.ParsingRequest.md): Request for parsing. getSource(): The source code to parse. Returns: the source code, never null getOptionValues(): Returns the source option values associated with the parsing request's source and language. getArgumentNames(): Argument names. Returns: symbolic names for parameters of CallTarget.call(java.lang.Object...) - [@ TruffleLanguage.Registration (annotation interface in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleLanguage.Registration.md): The annotation to use to register your language to the Polyglot API. id(): Unique id of your language. Returns: identifier of your language name(): Unique name of your language. Returns: identifier of your language implementationName(): Unique name of your language implementation. Returns: the implementation name of your language version(): Unique string identifying the language version. Returns: version of your language defaultMimeType(): Returns the default MIME type of this language. characterMimeTypes(): List of MIME types supported by this language which sources should be interpreted as character based sources. Returns: array of MIME types assigned to your - [◆ TruffleLogger (class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleLogger.md): Support for logging in Truffle languages and instruments. getLogger(String): Find or create a root logger for a given language or instrument. Returns: a TruffleLogger Throws: NullPointerException - if id is null Throws: IllegalArgumentException - if id is not a valid language o getLogger(String, Class): Find or create a logger for a given language or instrument class. Returns: a TruffleLogger Throws: NullPointerException - if id or forClass is null Throws: IllegalArgumentException - if id is no getLogger(String, String): Find or create a logger for a given language or instrument. Returns: a TruffleLogger Throws: NullPointerException - if id is null T - [◇ TruffleOptionDescriptors (interface in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleOptionDescriptors.md): An OptionDescriptors enhanced to provide a sandbox policy for options. getSandboxPolicy(String): Returns a SandboxPolicy for an option key. - [◆ TruffleOptions (class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleOptions.md): Class containing general Truffle options. TraceRewrites: Enables/disables the rewriting of traces in the Truffle runtime to stdout. DetailedRewriteReasons: Enables the generation of detailed rewrite reasons. DetailedAssertions: Enables expensive assertions in Truffle and guest language implementations. TraceRewritesFilterClass: Filters rewrites that do not contain the given string in the qualified name of the source or target class hierarchy. TraceRewritesFilterFromCost: Deprecated. in 24.1 without replacement TraceRewritesFilterToCost: Deprecated. in 24.1 without replacement AOT: Forces ahead-of-time initialization. - [◇ TruffleRuntime (interface in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleRuntime.md): Interface representing a Truffle runtime object. getName(): Name describing this runtime implementation for debugging purposes. Returns: the name as a String createDirectCallNode(CallTarget): Creates a new runtime specific version of DirectCallNode. Returns: the new call node createLoopNode(RepeatingNode): Creates a new loop node with an implementation provided by a Truffle runtime implementation. createIndirectCallNode(): Creates a new runtime specific version of IndirectCallNode. Returns: the new call node createAssumption(): Creates a new assumption object that can be checked and invalidated. Returns: the newly created assumption object c - [◇ TruffleRuntimeAccess (interface in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleRuntimeAccess.md): A service that provides access to a TruffleRuntime implementation. getRuntime(): Gets the TruffleRuntime implementation available via this access object. getPriority(): Allows disambiguation if more than one TruffleRuntime implementation is available. - [◆ TruffleSafepoint (abstract class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleSafepoint.md): Truffle safepoints allow interrupting the guest language execution to execute thread-local actions submitted by a language or tool. TruffleSafepoint(Accessor.EngineSupport): Do not extend this class. poll(Node): Polls a safepoint at the provided location. pollHere(Node): Similar to poll(Node) but with exact location. setBlockedWithException(Node, TruffleSafepoint.Interrupter, …): Deprecated. Use setBlocked(Node, Interrupter, Interruptible, Object, Runnable, Consumer) Transitions the current thread into a blocked state and calls an in setBlockedFunction(Node, TruffleSafepoint.Interrupter, …): Transitions the current thread into a blocked state and calls an interruptible functional method. setBlocked(Node, TruffleSafepoint.I - [◇ TruffleSafepoint.CompiledInterruptible (interface in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleSafepoint.CompiledInterruptible.md): Just like Interruptible but allows partial evaluation. apply(T): Runs the interruptable method for a given object. Throws: InterruptedException - [◇ TruffleSafepoint.CompiledInterruptibleFunction (interface in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleSafepoint.CompiledInterruptibleFunction.md): Just like InterruptibleFunction but allows partial evaluation. apply(T): Runs the interruptible method for a given object. Throws: InterruptedException - [◇ TruffleSafepoint.Interrupter (interface in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleSafepoint.Interrupter.md): An interrupter allows a foreign thread to interrupt the execution on a separate thread. interrupt(Thread): Sets the interrupted state on a foreign thread. resetInterrupted(): Resets the interrupted state when executing on a thread after the thread was interrupted. THREAD_INTERRUPT: A thread interrupter implementation that uses Thread.interrupt() and Thread.interrupted() to clear the thread state. - [◇ TruffleSafepoint.Interruptible (interface in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleSafepoint.Interruptible.md): Function interface that represent interruptable Java methods. apply(T): Runs the interruptable method for a given object. Throws: InterruptedException - [◇ TruffleSafepoint.InterruptibleFunction (interface in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleSafepoint.InterruptibleFunction.md): Function interface that represent interruptable Java methods. apply(T): Runs the interruptible method for a given object. Throws: InterruptedException - [⚡︎ TruffleStackTrace (exception in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleStackTrace.md): Represents a guest language stack trace. getStackTrace(Throwable): Returns the guest language frames that are stored in this throwable or null if no guest language frames can ever be stored in this throwable. Throws: NullPointerException - if the Throwable is n getAsynchronousStackTrace(CallTarget, Frame): Returns asynchronous guest language stack frames that led to the execution of given CallTarget on the given Frame. Returns: a list of asynchronous frames, or null. fillIn(Throwable): Fills in the guest language stack frames from the current frames on the stack. Throws: NullPointerException - if the Throwable is null - [◆ TruffleStackTraceElement (class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleStackTraceElement.md): Represents a guest stack trace element. create(Node, RootCallTarget, Frame): Create a new stack trace element. create(Node, RootCallTarget, …): Create a new stack trace element. getLocation(): Returns a node representing the callsite on the stack. getInstrumentableLocation(): Returns an instrumentable call node from a frame instance. getTarget(): Returns the call target on the stack. getFrame(): Returns the read-only frame. hasBytecodeIndex(): Returns true if the stack trace element contains a valid bytecode index, else false. getBytecodeIndex(): Returns the bytecode index at the time when this frame was created. - [◆ TruffleThreadBuilder (class in com.oracle.truffle.api)](com/oracle/truffle/api/TruffleThreadBuilder.md): A builder for threads that have access to the appropriate TruffleContext. context(TruffleContext): Specifies TruffleContext for the threads created by the builder. threadGroup(ThreadGroup): Specifies thread group for the threads created by this builder. stackSize(long): Specifies stack size for the threads created by this builder. beforeEnter(Runnable): Specifies before enter notification for the threads created by this builder. afterLeave(Runnable): Specifies after leave notification for the threads created by this builder. virtual(boolean): Specifies whether to create a virtual thread (Thread#ofVirtual()) or a regular platform thread (the default) for the threads - [▣ Package com.oracle.truffle.api.bytecode](com/oracle/truffle/api/bytecode/index.md): The Bytecode DSL is a DSL and runtime support component of Truffle that makes it easier to implement bytecode interpreters. - [◆ BytecodeBuilder (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeBuilder.md): Parent class for a bytecode builder generated by the Bytecode DSL. BytecodeBuilder(Object): Internal constructor for generated code. - [◆ BytecodeConfig (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeConfig.md): The configuration to use while generating bytecode. DEFAULT: Do not materialize any source or instrumentation information. WITH_SOURCE: Materialize source information. WITH_SOURCE_CONTENT: Materialize source information and load content. COMPLETE: Materialize all information. newBuilder(BytecodeConfigEncoder): Produces a new Builder that can be used to programmatically build a BytecodeConfig. matches(BytecodeConfig): Returns whether this configuration matches other. - [◆ BytecodeConfig.Builder (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeConfig.Builder.md): Builder to generate a BytecodeConfig programmatically. addSource(): Sets whether to materialize sources. addSourceContent(): Sets whether to materialize sources and their content. addTag(Class): Sets a specific set of tags to be materialized. addInstrumentation(Class): Sets a specific set of instrumentations to be materialized. build(): Builds the config. - [◆ BytecodeConfigEncoder (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeConfigEncoder.md): Abstract class implemented by generated code to encode BytecodeConfig data. encodeInstrumentation(Class): Throws: IllegalArgumentException encodeTag(Class): Throws: IllegalArgumentException normalizeEncoding(long): Normalizes configuration bits for this interpreter. decode(BytecodeConfigEncoder, long): Decodes a configuration from its encoding. - [◆ BytecodeDSLAccess (sealed abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeDSLAccess.md): Accessor class used by generated code for low-level access to frames, bytecode arrays, and other bytecode classes. lookup(Object, boolean): Obtains an accessor. getByteArraySupport(): Returns a ByteArraySupport to use for byte array accesses. getFrameExtensions(): Returns a FrameExtensions to use for frame accesses. readInt(int\[\], int): Reads from an int array. writeInt(int\[\], int, int): Writes to an int array. readObject(T\[\], int): Reads from an Object array. writeObject(T\[\], int, T): Writes to an Object array. uncheckedCast(Object, Class): Casts a value to the given class. - [◆ BytecodeDescriptor (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeDescriptor.md): Describes the bytecode interpreter generated for a specific BytecodeRootNode class and provides the management API for that interpreter. getSpecificationClass(): Returns the specification class for this descriptor. Returns: the specification class, never null. getGeneratedClass(): Returns the generated root node class that implements the bytecode interpreter. Returns: the generated root node class, never null getLanguageClass(): Returns the TruffleLanguage class that this descriptor is associated with, never null. getInstructionDescriptor(int): Returns the InstructionDescriptor for the given operation code, or null if the code is not defined by this interpreter. getInstructionDescriptors(): Returns an immutable list of all inst - [⚡︎ BytecodeEncodingException (exception in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeEncodingException.md): Class representing an exception thrown by a BytecodeBuilder when the program cannot be encoded, for example, when the bytecode exceeds the maximum addressable bytecode size. create(String): Creates a bytecode encoding exception with a reason string. - [◆ BytecodeFrame (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeFrame.md): Represents a captured Bytecode DSL frame, including the location metadata needed to access the data in the frame. copy(): Returns a copy of this frame. Returns: a copy of this frame that is always valid and will not observe updates getLocation(): Returns the bytecode location associated with the captured frame. getBytecodeNode(): Returns the bytecode node associated with the captured frame. getBytecodeIndex(): Returns the bytecode index associated with the captured frame. getLocalCount(): Returns the number of live locals in the captured frame. getLocalValue(int): Returns the value of the local at the given offset. setLocalValue(int, Object): Updates the value of the local at the given offset. getLocalNam - [≡ BytecodeIndexMode (enum class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeIndexMode.md): Configures how a generated bytecode interpreter makes its current bytecode index available for stack walking and frame introspection. FRAME: Stores the current bytecode index automatically in the frame in all interpreter tiers. CACHED_NODE: Derives the bytecode index from the current operation node in the cached interpreter and stores it automatically in the frame in the uncached interpreter. MANUAL: Reserves a frame slot that is updated manually using BytecodeNode.setBytecodeIndex or explicitly for operations using Operation.storeBytecodeIndex() or StoreBytecodeIndex. NONE: Does not reserve a frame slot or perform implicit bytecode index lookup. values(): Returns the enum constants in declaration order. valueOf(String): Ret - [◆ BytecodeLabel (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeLabel.md): Abstract definition of a label. BytecodeLabel(Object): Internal constructor for generated code. - [◆ BytecodeLocal (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeLocal.md): Abstract definition of a local variable in the interpreter. BytecodeLocal(Object): Internal constructor for generated code. getLocalOffset(): Returns the local offset to use when accessing local values with a local accessor like BytecodeNode.getLocalValue(int, Frame, int). getLocalIndex(): Returns the index when accessing into the locals table with BytecodeNode.getLocals(). - [◆ BytecodeLocation (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeLocation.md): A materialized bytecode location. getBytecodeIndex(): Returns the bytecode index. getBytecodeNode(): Returns the BytecodeNode associated with this location. dump(): Dumps the bytecode debug information, highlighting this location in the result. Returns: dump string update(): Updates this location to the newest bytecode node of the parent bytecode root node, translating the bytecode index to the new bytecode node in the process. ensureSourceInformation(): Ensures source information is available. ensureSourceInformationWithContent(): Ensures source information with content is available. getSourceLocation(): Computes the most con - [◆ BytecodeNode (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeNode.md): Represents the current bytecode for a Bytecode DSL root node. BytecodeNode(Object): Internal constructor for generated code. getBytecodeLocation(Frame, Node): Returns the current bytecode location using the current frame and location. Returns: the bytecode location, or null if the frame and node do not originate from a Bytecode DSL root node. getBytecodeLocation(FrameInstance): Gets the bytecode location associated with a particular FrameInstance obtained from a stack walk. Returns: the bytecode location, or null if the frame belongs to another bytecode node getBytecodeLocation(int): Gets the bytecode location associated with a bytecode index. Throws: I - [◇ BytecodeParser (interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeParser.md): Functional interface containing a method to parse one or more nodes using a BytecodeBuilder. parse(T): The parse method. - [◇ BytecodeRootNode (interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeRootNode.md): Base interface to be implemented by the bytecode root node of a Bytecode DSL interpreter. execute(VirtualFrame): Entrypoint to the root node. Returns: the value returned by the root node interceptIncomingValue(Object): Optional hook invoked to convert a value received from tag instrumentation before it resumes guest-language execution. Returns: the value to resume execution with interceptOutgoingValue(Object): Optional hook invoked to convert every guest-language value before it is exposed to tag instrumentation. Returns: the interop value to report to tag instrumentation getInstrumentationNodeObject(TagTreeNode): Supplies the node object for a tagged bytecode region. Returns: an i - [◆ BytecodeRootNodes (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeRootNodes.md): A BytecodeRootNodes instance encapsulates one or more bytecode root nodes produced from a single parse. TOKEN: A singleton object used to ensure certain Bytecode DSL APIs are only used by generated code. nodes: The array of parsed nodes. BytecodeRootNodes(Object, BytecodeParser): Default constructor for a BytecodeBuilder. getNodes(): Returns the list of bytecode root nodes. getNode(int): Returns the bytecode root node at index i. count(): Returns the number of root nodes produced from the parse. getParser(): Returns the parser used to parse the root nodes. update(BytecodeConfig): Updates the configuration for the given bytecode nodes. - [◆ BytecodeSupport (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeSupport.md): Contains code to support Bytecode DSL interpreters. - [◆ BytecodeSupport.CloneReferenceList (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeSupport.CloneReferenceList.md): Special list to weakly keep track of clones. add(T): Adds a new reference to the list. forEach(Consumer): Walks all references contained in the list. - [◆ BytecodeSupport.ConstantsBuffer (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeSupport.ConstantsBuffer.md): Specialized reusable and allocation-free buffer for constants. add(Object): Inserts constant (non-null) and returns its pool index. Throws: NullPointerException - if constant is null addNull(): Inserts a constant without value and returns its index. materialize(): Copies the internal constants\[\] array and returns it. Returns: a freshly allocated array of exactly size() elements, never null. clear(): Clears all object references held in this buffer. Throws: IllegalStateException - if materialize() has not been called since the last insertion - [≡ BytecodeTier (enum class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeTier.md): Represents the tier of a given BytecodeNode. UNCACHED: The uncached bytecode tier does not collect profiling feedback. CACHED: The cached bytecode tier does collect profiling feedback. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [◆ BytecodeTransition (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeTransition.md): Encapsulates information about a transition of the bytecode interpreter from one bytecode node to another. BytecodeTransition(Object): Internal constructor for generated code. isBytecodeUpdate(): Returns true if bytecode metadata or instructions changed for this transition, e.g. isTransferToInterpreter(): Returns true if this transition was triggered by a deoptimization from compiled code. getAddedTags(): Returns tags that were newly added by this transition. getAddedInstrumentations(): Returns instrumentations that were newly added by this transition. getOldLocation(): Returns the bytecode location before the transition. getNewLocation(): Returns the bytecode location after the transition. - [≡ BytecodeVersion (enum class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/BytecodeVersion.md): Bytecode DSL behaviour versions selectable through GenerateBytecode.version(). V1: Original Bytecode DSL behaviour on initial release. V2: Distinguishes illegal locals from valid null values in the BytecodeNode local APIs. LATEST: The newest supported Bytecode DSL behaviour version. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [@ ConstantOperand (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/ConstantOperand.md): Defines a constant operand for an operation. type(): The type of the constant operand. name(): Optional name for the constant operand. javadoc(): Optional documentation for the constant operand. specifyAtEnd(): By default, when an operation has dynamic operands, the constant operands appear before them in signatures and must be supplied to the operation's begin method of the BytecodeBuilder. dimensions(): Specifies the number of array dimensions to be marked as compilation final. - [@ ConstantOperand.Repeat (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/ConstantOperand.Repeat.md): Repeat annotation for ConstantOperand. value(): Repeat value for ConstantOperand. - [◆ ContinuationResult (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/ContinuationResult.md): Representation of a continuation closure, consisting of a resumable RootNode, the interpreter state, and a yielded result. ContinuationResult(ContinuationRootNode, MaterializedFrame, Object): Creates a continuation. create(ContinuationRootNode, MaterializedFrame, Object): Public API for creating a continuation result. continueWith(Object): Resumes the continuation. getContinuationRootNode(): Returns the root node that resumes execution. getContinuationCallTarget(): Returns the call target for the continuation root node. getFrame(): Returns the state of the interpreter at the point that it was suspended. getResult(): Returns the value yielded by the yield operation. getBytecodeLocation(): Returns the location at wh - [◆ ContinuationRootNode (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/ContinuationRootNode.md): Abstract class representing the root node for a continuation. ContinuationRootNode(Object, TruffleLanguage, FrameDescriptor): Internal constructor for generated code. getSourceRootNode(): Returns the original root node from which this continuation was created. getLocation(): Returns the BytecodeLocation associated with this continuation. findFrame(Frame): Internal method implemented by the generated code. - [@ EpilogExceptional (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/EpilogExceptional.md): Defines an exceptional epilog operation. storeBytecodeIndex(): Whether to store the BCI before executing this operation. Returns: whether to enable operation-level BCI storage - [@ EpilogReturn (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/EpilogReturn.md): Defines a return epilog operation. storeBytecodeIndex(): Whether to store the BCI before executing this operation. Returns: whether to enable operation-level BCI storage - [◆ ExceptionHandler (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/ExceptionHandler.md): Introspection class modeling the meta-information of an exception handler in a bytecode interpreter. ExceptionHandler(Object): Internal constructor for generated code. getKind(): Returns a kind that determines whether the handler is a custom or special exception handler. getStartBytecodeIndex(): Returns the start bytecode index guarded by this exception handler (inclusive). getEndBytecodeIndex(): Returns the end bytecode index guarded by this exception handler (exclusive). getHandlerBytecodeIndex(): Returns the bytecode index of the handler code if this exception handler is of kind HandlerKind.CUSTOM. Throws: UnsupportedOperationException - for handlers not of kind HandlerKind.CUSTOM getTagTr - [≡ ExceptionHandler.HandlerKind (enum class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/ExceptionHandler.HandlerKind.md): Represents the kind of the exception handler. CUSTOM: Handler directly emitted with the bytecode builder. TAG: A special handler which handles tag instrumentation exceptional behavior. EPILOG: A special handler which handles epilog exceptional behavior. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [@ ForceQuickening (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/ForceQuickening.md): Forces quickening for an Operation specialization. value(): The name of the quickening group. - [@ ForceQuickening.Repeat (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/ForceQuickening.Repeat.md): Repeat annotation for ForceQuickening. value(): Repeat value for ForceQuickening. - [@ GenerateBytecode (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/GenerateBytecode.md): Generates a bytecode interpreter using the Bytecode DSL. languageClass(): The TruffleLanguage class associated with this node. version(): Selects the Bytecode DSL behaviour version. unwindExceptions(): Specifies exception types that unwind the bytecode interpreter through guest finally handlers. enableUncachedInterpreter(): Whether to generate an uncached interpreter. defaultUncachedThreshold(): Sets the default number of invocations/resumptions or backward branches for which the interpreter executes uncached before transitioning to cached on the next such event. enableSerialization(): Whether the generated interpreter should support serialization a - [@ GenerateBytecodeTestVariants (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/GenerateBytecodeTestVariants.md): This annotation should only be used for testing to generate multiple variants of the interpreter with slightly different configurations. value(): The variants to generate. - [@ GenerateBytecodeTestVariants.Variant (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/GenerateBytecodeTestVariants.Variant.md): The annotation used to declare a variant. suffix(): The class name suffix for this variant. configuration(): The configuration for this variant. - [◆ Instruction (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/Instruction.md): Represents metadata for an instruction in a bytecode node. Instruction(Object): Internal constructor for generated code. getBytecodeNode(): Returns the bytecode node this instruction belongs to. getBytecodeIndex(): Returns the bytecode index of this instruction. getDescriptor(): Returns the descriptor object for this instruction. getLength(): Returns the length of this instruction in bytes. getLocation(): Converts this instruction pointer into a bytecode location. getName(): Returns the name of this instruction. getOperationCode(): Returns the operation code of this instruction. - [◆ Instruction.Argument (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/Instruction.Argument.md): Represents metadata for an argument of an instruction in a bytecode node. Argument(Object): Internal constructor for generated code. getDescriptor(): Returns the descriptor object for this argument. getKind(): Returns the Kind of this argument. getName(): Returns a human readable name for this argument. asInteger(): Converts this argument to an int value. Throws: UnsupportedOperationException asBytecodeIndex(): Converts this argument to a bytecode index. asConstant(): Converts this argument to a object constant. asCachedNode(): Converts this argument to a cached node. - [▤ Instruction.Argument.BranchProfile (record in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/Instruction.Argument.BranchProfile.md): Represents a branch profile. index: trueCount: falseCount: getFrequency(): Returns the frequency recorded by this profile. hashCode(): Returns a hash code computed from the record components. equals(Object): Returns whether the other object is a record of the same class with equal components. - [≡ Instruction.Argument.Kind (enum class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/Instruction.Argument.Kind.md): Represents the kind of an Argument. CONSTANT: A constant value. BYTECODE_INDEX: A bytecode index. INTEGER: An integer value. LOCAL_OFFSET: The logical frame offset of a local variable. LOCAL_INDEX: The unique index of a local variable. NODE_PROFILE: A node profile. BRANCH_PROFILE: A branch profile. TAG_NODE: A TagTreeNode. - [◆ InstructionDescriptor (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/InstructionDescriptor.md): Descriptor for a concrete bytecode instruction. InstructionDescriptor(Object): Internal constructor for generated code. getLength(): Returns the encoded size of this instruction in bytes. getName(): Returns a human readable instruction name. getOperationCode(): Returns the operation code for this instruction. getOperationClass(): Returns the class defining the custom operation that produced this instruction. Returns: the operation class, or null if unavailable getArgumentDescriptors(): Returns an immutable list describing the immediate arguments of this instruction. isInstrumentation(): Returns true if this instruction represents a bytecode - [◆ InstructionDescriptor.ArgumentDescriptor (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/InstructionDescriptor.ArgumentDescriptor.md): Descriptor for a single immediate argument of an instruction. ArgumentDescriptor(Object): Internal constructor for generated code. getKind(): Returns the Kind of this argument descriptor. getName(): Returns a human readable name for this argument. getLength(): Returns width in bytes. - [◇ InstructionTracer (interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/InstructionTracer.md): A low-overhead callback interface to observe instruction execution in Bytecode DSL interpreters. onInstructionEnter(InstructionTracer.InstructionAccess, BytecodeNode, …): Called immediately before executing the instruction at bytecodeIndex of the given bytecode node. getExclusiveBytecodeDescriptor(): Returns the BytecodeDescriptor that this tracer is exclusive for, or null if this instruction tracer may be used with any bytecode descriptor. - [◆ InstructionTracer.InstructionAccess (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/InstructionTracer.InstructionAccess.md): Accessor for properties of the instruction about to execute. InstructionAccess(Object): Internal constructor for generated code. getTracedInstruction(BytecodeNode, int): Materializes the Instruction object for the instruction at the given bytecode index. Returns: the materialized Instruction representing the instruction at BCI getTracedOperationCode(BytecodeNode, int): Returns the operation code for the instruction at the given bytecode index, without allocating an Instruction object. Returns: the integer operation code of the instruction at B - [@ Instrumentation (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/Instrumentation.md): Instrumentations are operations that can be dynamically enabled at runtime. forceCached(): Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached. javadoc(): Optional documentation for the instrumentation. storeBytecodeIndex(): Whether to store the BCI before executing this operation. Returns: whether to enable operation-level BCI storage - [◆ LocalAccessor (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/LocalAccessor.md): Operation parameter that allows an operation to get, set, and clear the value of a local. toString(): Returns a string representation of a LocalAccessor. getObject(BytecodeNode, VirtualFrame): Loads an object from the local. getBoolean(BytecodeNode, VirtualFrame): Loads a boolean from the local. Throws: UnexpectedResultException getByte(BytecodeNode, VirtualFrame): Loads a byte from the local. Throws: UnexpectedResultException getInt(BytecodeNode, VirtualFrame): Loads an int from the local. Throws: UnexpectedResultException getLong(BytecodeNode, VirtualFrame): Loads a long from the local. Throws: UnexpectedResultException getFloat(BytecodeNode, VirtualFrame): Loads a float from the - [◆ LocalRangeAccessor (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/LocalRangeAccessor.md): Operation parameter that allows an operation to get, set, or clear locals declared in a contiguous range. getLength(): Returns the length of the range. toString(): Returns a string representation of a LocalRangeAccessor. getObject(BytecodeNode, VirtualFrame, int): Loads an object from the local at the given offset into the range. getBoolean(BytecodeNode, VirtualFrame, int): Loads a boolean from the local at the given offset into the range. Throws: UnexpectedResultException getByte(BytecodeNode, VirtualFrame, int): Loads a byte from the local at the given offset into the range. Throws: UnexpectedResultException getInt(BytecodeNode, VirtualFrame, int): Loads an int from the local at the given offset - [◆ LocalVariable (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/LocalVariable.md): Introspection class modeling a local variable and its liveness info in a bytecode interpreter. LocalVariable(Object): Internal constructor for generated code. getStartIndex(): Returns the bytecode index at which this local starts being live. getEndIndex(): Returns the bytecode index at which this local stops being live. getLocalOffset(): Returns the logical frame offset of a local variable. getLocalIndex(): Returns the local index, a unique identifier for each BytecodeLocal in a root node. getTypeProfile(): Returns the type profile that was collected for this local. getInfo(): Returns the info provided for the local, or null if no info was provided. getName(): Returns the name provided - [◆ MaterializedLocalAccessor (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.md): Operation parameter that allows an operation to get, set, and clear the value of a local from a materialized frame of the current root node or an outer root node. toString(): Returns a string representation of a MaterializedLocalAccessor. getObject(BytecodeNode, MaterializedFrame): Loads an object from the local. getBoolean(BytecodeNode, MaterializedFrame): Loads a boolean from the local. Throws: UnexpectedResultException getByte(BytecodeNode, MaterializedFrame): Loads a byte from the local. Throws: UnexpectedResultException getInt(BytecodeNode, MaterializedFrame): Loads an int from the local. Throws: UnexpectedResultException getLong(BytecodeNode, MaterializedFrame): Loads a long from the local. Throws: UnexpectedResultException getFloat(BytecodeNode, - [@ Operation (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/Operation.md): Declares an operation. forceCached(): Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached. tags(): The instrumentation tags that should be implicitly associated with this operation. javadoc(): Optional documentation for the operation. storeBytecodeIndex(): Whether to store the BCI in the frame before executing this operation. Returns: whether to enable operation-level BCI storage - [@ OperationProxy (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/OperationProxy.md): Defines an operation using an existing com.oracle.truffle.api.nodes.Node. value(): The com.oracle.truffle.api.nodes.Node class to proxy. name(): The name to use for the operation. forceCached(): Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached. javadoc(): Optional documentation for the operation proxy. tags(): The instrumentation tags that should be implicitly associated with this operation. - [@ OperationProxy.Proxyable (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/OperationProxy.Proxyable.md): Designates a com.oracle.truffle.api.nodes.Node class as eligible for proxying. bindFrame(): Whether to recognize an optional leading frame as execution metadata, accessible through @Bind("$frame") or a leading specialization parameter. Returns: whether to bind the frame; defaults to true bindBytecodeNode(): Whether each execute method supplies a BytecodeNode metadata parameter for @Bind("$bytecodeNode"). Returns: whether to bind the bytecode node; defaults to false bindBytecodeIndex(): Whether each execute method supplies an int metadata parameter for @Bind("$bytecodeIndex"). Returns: whether to bind the bytecode index; defaults to false allowUncached(): Whether a proxya - [@ OperationProxy.Repeat (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/OperationProxy.Repeat.md): Repeat annotation for OperationProxy. value(): Repeat value for OperationProxy. - [@ Prolog (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/Prolog.md): Defines a prolog operation that executes before the body of a Root operation. storeBytecodeIndex(): Whether to store the BCI before executing this operation. Returns: whether to enable operation-level BCI storage - [@ Return (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/Return.md): Declares a custom return operation. forceCached(): Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached. tags(): The instrumentation tags that should be implicitly associated with this operation. javadoc(): Optional documentation for the operation. resultOperandIndex(): Index of the dynamic operand that represents the logical "result" of the return before the custom return executes. - [@ ShortCircuitOperation (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/ShortCircuitOperation.md): Declares a short-circuiting operation. name(): The name of this operation. operator(): The short-circuit operator to use for this operation. booleanConverter(): A node or operation class. javadoc(): Optional documentation for the short circuit operation. - [≡ ShortCircuitOperation.Operator (enum class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/ShortCircuitOperation.Operator.md): Defines the behaviour of a ShortCircuitOperation. AND_RETURN_VALUE: AND operator that produces the operand value. AND_RETURN_CONVERTED: AND operator that produces the converted boolean value. OR_RETURN_VALUE: OR operator that produces the operand value. OR_RETURN_CONVERTED: OR operator that produces the converted boolean value. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [@ ShortCircuitOperation.Repeat (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/ShortCircuitOperation.Repeat.md): Repeat annotation for ShortCircuitOperation. value(): Repeat value for ShortCircuitOperation. - [◆ SourceInformation (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/SourceInformation.md): Introspection class modeling source section information for a range of bytecodes. SourceInformation(Object): Internal constructor for generated code. getStartBytecodeIndex(): Returns the start bytecode index for this source information object (inclusive). getEndBytecodeIndex(): Returns the end bytecode index for this source information object (exclusive). getSourceSection(): Returns the source section associated with this source information object. - [◆ SourceInformationTree (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/SourceInformationTree.md): Introspection class modeling a tree of SourceInformation instances. SourceInformationTree(Object): Internal constructor for generated code. getChildren(): Returns a list of child trees, ordered by bytecode range. - [◆ StackValue (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/StackValue.md): Abstract definition of a stack value in the interpreter. StackValue(Object): Internal constructor for generated code. - [@ StoreBytecodeIndex (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/StoreBytecodeIndex.md): Stores the BCI in the frame before an annotated Specialization or Fallback executes. - [◇ TagTree (interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/TagTree.md): Logical tree representation of the Tag operations of a bytecode program. getTreeChildren(): Returns the child trees corresponding to Tag operations nested in this node. getTags(): Returns the tags associated with this node. hasTag(Class): Returns whether the given tag is associated with this node. getEnterBytecodeIndex(): Returns the bytecode index at which the interpreter enters the tag operation. getReturnBytecodeIndex(): Returns the bytecode index at which the interpreter "returns" from the tag operation. getSourceSection(): Gets the most concrete source location associated with the tag operation. getSourceSections(): Gets all source locations associated with th - [◆ TagTreeNode (abstract class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/TagTreeNode.md): Class that implements tag tree NodeLibrary dispatch for tag tree items. TagTreeNode(Object): Internal constructor for generated code. getLanguage(): Deprecated. Use getLanguageId(). Allows to access the language instance associated with this node. getLanguageId(): Returns an id of a language associated with this node. dispatch(): Returns the currently used NodeLibrary exports for this tag library. getBytecodeNode(): Returns the bytecode node associated with this node. createDefaultScope(Frame, boolean): Creates a default scope implementation based on this tag tree node. toString(): Converts this node to a textual representation useful for debugging. - [◆ TagTreeNodeGen (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/TagTreeNodeGen.md) - [◆ TagTreeNodeGen.DynamicDispatchLibraryExports (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/TagTreeNodeGen.DynamicDispatchLibraryExports.md): createUncached(Object): Implemented generated by ExportLibrary. createCached(Object): Implemented generated by ExportLibrary. - [◆ TagTreeNodeGen.DynamicDispatchLibraryExports.Cached (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/TagTreeNodeGen.DynamicDispatchLibraryExports.Cached.md): cast(Object): Cast the object receiver type to the dispatched type. accepts(Object): Returns true if this library instance supports sending messages with the given receiver. dispatch(Object): Returns a class that exports at least one library with an explicit receiver. - [◆ TagTreeNodeGen.DynamicDispatchLibraryExports.Uncached (class in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/TagTreeNodeGen.DynamicDispatchLibraryExports.Uncached.md): accepts(Object): Returns true if this library instance supports sending messages with the given receiver. cast(Object): Cast the object receiver type to the dispatched type. dispatch(Object): Returns a class that exports at least one library with an explicit receiver. - [@ Variadic (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/Variadic.md): Annotation indicating a parameter that takes zero or more values. startOffset(): Specifies the number of values reserved in the variadic object array. - [@ Yield (annotation interface in com.oracle.truffle.api.bytecode)](com/oracle/truffle/api/bytecode/Yield.md): Declares a custom yield operation. forceCached(): Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached. tags(): The instrumentation tags that should be implicitly associated with this operation. javadoc(): Optional documentation for the instrumentation. resultOperandIndex(): Index of the dynamic operand that represents the logical "result" of the yield before the custom yield executes. - [▣ Package com.oracle.truffle.api.bytecode.debug](com/oracle/truffle/api/bytecode/debug/index.md): Debug utilities for the Bytecode DSL. - [◇ BytecodeDebugListener (interface in com.oracle.truffle.api.bytecode.debug)](com/oracle/truffle/api/bytecode/debug/BytecodeDebugListener.md): Base interface for a bytecode root node to get additional debug event that are normally not available. beforeRootExecute(Instruction): Invoked before a root is executed. afterRootExecute(Instruction, Object, Throwable): Invoked before a root is left. beforeInstructionExecute(Instruction): Deprecated. no longer supported. Use InstructionTracer instead. Invoked before an instruction is executed. afterInstructionExecute(Instruction, Throwable): Deprecated. no longer supported. Use InstructionTracer instead. Invoked after an instruction was executed. onSpecialize(Instruction, String): Invoked when an operation or instrumentation specializes itself. onBytecodeStackTransition(Instruction, Instruction - [◇ BytecodeDebugTraceListener (interface in com.oracle.truffle.api.bytecode.debug)](com/oracle/truffle/api/bytecode/debug/BytecodeDebugTraceListener.md): Implement this class to quickly get some debug output for events in the bytecode node. onQuicken(Instruction, Instruction): Invoked when an instruction was quickened. onQuickenOperand(Instruction, int, …): Invoked when an operand was quickened due to boxing elimination. onSpecialize(Instruction, String): Invoked when an operation or instrumentation specializes itself. - [◆ HistogramInstructionTracer (class in com.oracle.truffle.api.bytecode.debug)](com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.md): Instruction tracer that records per-opcode execution counts and optionally aggregates them into hierarchical histograms by user defined group clauses. onInstructionEnter(InstructionTracer.InstructionAccess, BytecodeNode, …): Records the execution of an instruction. getExclusiveBytecodeDescriptor(): Returns the BytecodeDescriptor that this tracer is attached to. Returns: the descriptor used to resolve instruction metadata and opcodes getHistogram(): Creates a hierarchical histogram snapshot of the recorded counters without resetting them. Returns: a Histogram view of the current counters, possibly grouped getHistogramAndReset(): Creates a hierarchical histogram snapshot of the recorded counters and atomically resets the underlying counters to - [◆ HistogramInstructionTracer.Builder (class in com.oracle.truffle.api.bytecode.debug)](com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.Builder.md): Builder for HistogramInstructionTracer. filter(Predicate): Sets an optional filter predicate. Returns: this builder groupBy(HistogramInstructionTracer.GroupClause): Adds a grouping clause to the histogram. Returns: this builder Throws: NullPointerException - if clause is null build(BytecodeDescriptor): Builds a HistogramInstructionTracer for the given BytecodeDescriptor. Returns: a new tracer configured with the previously set filter and groups - [◇ HistogramInstructionTracer.GroupClause (interface in com.oracle.truffle.api.bytecode.debug)](com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.GroupClause.md): A grouping function that maps a BytecodeNode, the current Thread, and the compilation tier to an arbitrary grouping key. group(BytecodeNode, Thread, int): Computes the grouping key for the given execution context. Returns: a non null grouping key, for example a string, an enum, or a small record - [◆ HistogramInstructionTracer.Histogram (class in com.oracle.truffle.api.bytecode.debug)](com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.Histogram.md): Represents a hierarchical histogram that can group instruction counts by arbitrary attributes. getCounters(): Returns the per-instruction counts for this histogram level when it is a leaf. Returns: an unmodifiable map from InstructionDescriptor to count getStatistics(): Returns aggregated statistics across this histogram level. Returns: a map from InstructionDescriptor to aggregated statistics getGroups(): Returns the subgroups of this histogram, keyed by the grouping values produced by the configured GroupClauses. Returns: an unmodifiable map of subgroup keys to child histograms, or null if there are no group dump(): Renders this histogram to a string using print(PrintStream). Returns: - [◆ PrintInstructionTracer (class in com.oracle.truffle.api.bytecode.debug)](com/oracle/truffle/api/bytecode/debug/PrintInstructionTracer.md): An InstructionTracer implementation that prints a textual trace of executed bytecode instructions. onInstructionEnter(InstructionTracer.InstructionAccess, BytecodeNode, …): Called immediately before executing the instruction at bytecodeIndex of the given bytecode node. reset(): Resets the internal instruction counter back to zero. newBuilder(Consumer): Creates a new Builder that will emit trace lines to the given consumer. Returns: a new builder newBuilder(PrintStream): Convenience overload of newBuilder(Consumer) that writes to a PrintStream. Returns: a new builder - [◆ PrintInstructionTracer.Builder (class in com.oracle.truffle.api.bytecode.debug)](com/oracle/truffle/api/bytecode/debug/PrintInstructionTracer.Builder.md): Builder for PrintInstructionTracer instances. filter(Predicate): Sets an optional filter that decides which BytecodeNodes should be traced. Returns: this builder build(): Creates a new PrintInstructionTracer instance using the configured output sink and optional filter. Returns: a new tracer - [▣ Package com.oracle.truffle.api.bytecode.serialization](com/oracle/truffle/api/bytecode/serialization/index.md): Serialization-specific classes for the Bytecode DSL. - [◆ ByteBufferDataInput (class in com.oracle.truffle.api.bytecode.serialization)](com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.md): A DataInput backed by a ByteBuffer. readFully(byte\[\]): Throws: IOException readFully(byte\[\], int, int): Throws: IOException skipBytes(int): Throws: IOException readBoolean(): Throws: IOException readByte(): Throws: IOException readUnsignedByte(): Throws: IOException readShort(): Throws: IOException readUnsignedShort(): Throws: IOException - [◇ BytecodeDeserializer (interface in com.oracle.truffle.api.bytecode.serialization)](com/oracle/truffle/api/bytecode/serialization/BytecodeDeserializer.md): Represents a class that can deserialize constants from a byte stream. deserialize(BytecodeDeserializer.DeserializerContext, DataInput): The deserialization process. Throws: IOException - [◇ BytecodeDeserializer.DeserializerContext (interface in com.oracle.truffle.api.bytecode.serialization)](com/oracle/truffle/api/bytecode/serialization/BytecodeDeserializer.DeserializerContext.md): Interface for a generated class that can deserialize a BytecodeRootNode from a byte input. readBytecodeNode(DataInput): Deserializes a BytecodeRootNode from the byte input. Throws: IOException - [◇ BytecodeSerializer (interface in com.oracle.truffle.api.bytecode.serialization)](com/oracle/truffle/api/bytecode/serialization/BytecodeSerializer.md): Represents a class that can serialize constants in a bytecode interpreter. serialize(BytecodeSerializer.SerializerContext, DataOutput, Object): The serialization process. Throws: IOException - [◇ BytecodeSerializer.SerializerContext (interface in com.oracle.truffle.api.bytecode.serialization)](com/oracle/truffle/api/bytecode/serialization/BytecodeSerializer.SerializerContext.md): Interface for a generated class that can serialize a BytecodeRootNode to a byte buffer. writeBytecodeNode(DataOutput, BytecodeRootNode): Serializes a BytecodeRootNode to the byte buffer. Throws: IOException - [◆ SerializationUtils (class in com.oracle.truffle.api.bytecode.serialization)](com/oracle/truffle/api/bytecode/serialization/SerializationUtils.md): Utility class with helpers for serialization code. createDataInput(ByteBuffer): Deprecated. Use createByteBufferDataInput(ByteBuffer) Creates a DataInput backed by a ByteBuffer. createByteBufferDataInput(ByteBuffer): Creates a ByteBufferDataInput. - [▣ Package com.oracle.truffle.api.debug](com/oracle/truffle/api/debug/index.md): The debug package contains a debugger API that can be used to install breakpoints, step through and control the execution of Truffle guest language applications. - [◆ Breakpoint (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/Breakpoint.md): A request that guest language program execution be suspended at specified locations on behalf of a debugging client session. getKind(): Returns the kind of this breakpoint. isDisposed(): Returns: whether this breakpoint is permanently unable to affect execution isEnabled(): Returns: whether this breakpoint is currently allowed to suspend execution (true by default) setEnabled(boolean): Controls whether this breakpoint is currently allowed to suspend execution (true by default). isResolved(): Returns: whether at least one source has been loaded that contains a match for this breakpoint's location. setCondition(String): Assigns to this breakpoint a boolean expression whose evaluation will determine whether the breakpo - [◆ Breakpoint.Builder (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/Breakpoint.Builder.md): Builder implementation for a new breakpoint. lineIs(int): Specifies the breakpoint's line number. Throws: IllegalStateException - if line \< 1 suspendAnchor(SuspendAnchor): Specify the breakpoint suspension anchor within the guest language source location. columnIs(int): Specifies the breakpoint's column number. Throws: IllegalStateException - if column \< 1 resolveListener(Breakpoint.ResolveListener): Set a resolve listener. ignoreCount(int): Specifies the number of times a breakpoint is ignored until it hits (i.e. oneShot(): Specifies that the breakpoint will disable itself after suspending execution, i.e. sourceElements(SourceElement... - [◆ Breakpoint.ExceptionBuilder (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/Breakpoint.ExceptionBuilder.md): Builder implementation for a new breakpoint of EXCEPTION kind. suspensionFilter(SuspensionFilter): A filter to limit source locations which intercept exceptions. sourceElements(SourceElement...): Specifies which source elements will this breakpoint adhere to. build(): Returns: a new breakpoint instance of EXCEPTION kind. - [≡ Breakpoint.Kind (enum class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/Breakpoint.Kind.md): Specifies a breakpoint kind. HALT_INSTRUCTION: Represents breakpoints submitted for a halt instruction in a guest language program. SOURCE_LOCATION: Represents breakpoints submitted for a particular source code location. EXCEPTION: Represents exception breakpoints that are hit when an exception is thrown from a guest language program. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [◇ Breakpoint.ResolveListener (interface in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/Breakpoint.ResolveListener.md): This listener is called when a breakpoint is resolved at the target location. breakpointResolved(Breakpoint, SourceSection): Notify about a breakpoint resolved at the specified location. - [◆ DebugContext (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/DebugContext.md): Representation of a polyglot context in a guest language execution. evaluate(String, String): Evaluate the given code in this context. Returns: result of the evaluation runInContext(Supplier): Run supplied operations in this context. Returns: the supplier's return value getParent(): Get a parent context of this context, if any. Returns: a parent context, or null if there is no parent - [◇ DebugContextsListener (interface in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/DebugContextsListener.md): Listener to be notified about changes of contexts in guest language application. contextCreated(DebugContext): Notifies about creation of a new polyglot context. languageContextCreated(DebugContext, LanguageInfo): Notifies about creation of a language-specific context in an existing polyglot context. languageContextInitialized(DebugContext, LanguageInfo): Notifies about initialization of a language-specific context in an existing polyglot context. languageContextFinalized(DebugContext, LanguageInfo): Notifies about finalization of a language-specific context in an existing polyglot context. languageContextDisposed(DebugContext, LanguageInfo): Notifies about disposal of a l - [⚡︎ DebugException (exception in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/DebugException.md): Information about an exception thrown from a guest language. fillInStackTrace(): Unsupported, DebugException instances are not writable therefore filling the stack trace has no effect for them. setStackTrace(StackTraceElement\[\]): Unsupported, DebugException instances are not writable therefore setting the stack trace has no effect for them. getStackTrace(): Gets stack trace elements of guest languages. getDebugStackTrace(): Gets stack trace elements of guest languages. getDebugAsynchronousStacks(): Get a list of asynchronous stack traces that led to scheduling of the exception's execution. isInternalError(): Returns true if this exception indicates an i - [◆ DebugException.CatchLocation (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/DebugException.CatchLocation.md): Represents an exception catch location. getSourceSection(): Returns: a source section, or null if the catch source section is not known. getFrame(): Returns: a frame in which the exception is going to be caught. - [◆ DebugScope (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/DebugScope.md): Representation of guest language scope at the current suspension point, or a top scope. getName(): Get a human readable name of this scope. getParent(): Get a parent scope. Returns: the parent scope, or null. Throws: DebugException - when guest language code throws an exception isFunctionScope(): Test if this scope represents the function scope at the frame it was obtained from. getSourceSection(): Get a source section representing this scope. Returns: the source section, or null when not available. Throws: DebugException - when guest language code throws an exception getReceiver(): Get value that represents the receiver object of this scope. Returns: value that represents the re - [◆ DebugStackFrame (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/DebugStackFrame.md): Represents a frame in the guest language stack. isInternal(): Returns whether this stack frame is a language implementation artifact that should be hidden during normal guest language debugging, for example in stack traces. isHost(): Returns true if this frame is a host frame. getHostTraceElement(): Provides a host frame. Returns: the host stack trace element, or null when not a host frame. getName(): A description of the AST (expected to be a method or procedure name in most languages) that identifies the AST for the benefit of guest language programmers using tools; it might appear, for example in the con getSourceSection(): Returns the s - [◆ DebugStackTraceElement (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/DebugStackTraceElement.md): Represents a trace element in the guest language stack trace. isInternal(): Returns whether this trace element is a language implementation artifact. isHost(): Returns true if this element is a host element. getHostTraceElement(): Provides a host element. Returns: the host stack trace element, or null when not a host element. getName(): A description of the trace element. getSourceSection(): Returns the source section location of this trace element. getScope(): Get the current inner-most scope. Returns: the scope, or null when no language is associated with this frame location, or when no local scope exists. - [◇ DebugThreadsListener (interface in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/DebugThreadsListener.md): Listener to be notified about changes of threads in guest language application. threadInitialized(DebugContext, Thread): Notifies about initialization of a thread to be used for a guest language execution in a DebugContext. threadDisposed(DebugContext, Thread): Notifies about disposal of thread-related resources that were used for a guest language execution in a DebugContext. - [◆ DebugValue (abstract class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/DebugValue.md): Represents a value accessed using the debugger API. set(DebugValue): Sets the value using another DebugValue. Throws: DebugException - when guest language code throws an exception getName(): Returns the name of this value as it is referred to from its origin. isReadable(): Returns true if this value can be read else false. hasReadSideEffects(): Returns true if reading of this value can have side-effects, else false. hasWriteSideEffects(): Returns true if setting a new value can have side-effects, else false. isWritable(): Returns true if this value can be written to, else false. isInternal(): Returns true if this value represents an internal va - [◆ Debugger (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/Debugger.md): Class that simplifies implementing a debugger on top of Truffle. startSession(SuspendedCallback): Starts a new session provided with a callback that gets notified whenever the execution is suspended. startSession(SuspendedCallback, SourceElement...): Starts a new session provided with a callback that gets notified whenever the execution is suspended and with a list of source syntax elements on which it is possible to getSessionCount(): Returns the number of active debugger sessions. install(Breakpoint): Adds a new breakpoint to this Debugger instance and makes it available in all its sessions. Returns: the installed breakpoint Throws: IllegalStateException - [◆ DebuggerSession (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/DebuggerSession.md): Represents a single debugging session of a Debugger. getDebugger(): Returns the debugger instance that this session is associated with. getTopScope(String): Returns a language top scope. Throws: DebugException - when guest language code throws an exception getExportedSymbols(): Returns a polyglot scope - symbols explicitly exported by languages. setShowHostStackFrames(boolean): Set to provide host information in stack traces. setSteppingFilter(SuspensionFilter): Set a stepping suspension filter. suspendNextExecution(): Suspends the next execution on the first thread that is encountered. suspendHere(Node): Suspend immediately at the current locat - [◆ DebuggerTags (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/DebuggerTags.md): Set of debugger-specific tags. - [◆ DebuggerTags.AlwaysHalt (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/DebuggerTags.AlwaysHalt.md): Marks program locations where debugger should always halt like if on a breakpoint. - [≡ SourceElement (enum class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/SourceElement.md): Representation of a guest language source syntax element, that is used for debugging purposes. STATEMENT: Denotes program locations that represent a statement of a guest language. EXPRESSION: Denotes program locations that represent an expression of a guest language. ROOT: Denotes program locations that represent a function of a guest language. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [◆ StepConfig (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/StepConfig.md): Represents a debugger step configuration. newBuilder(): Create a new step configuration builder. - [◆ StepConfig.Builder (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/StepConfig.Builder.md): Builder of StepConfig. sourceElements(SourceElement...): Provide a list of SourceElements that are enabled for the step. suspendAnchors(SourceElement, SuspendAnchor...): Provide a list of SuspendAnchors for individual SourceElements. count(int): Provide the step count. Throws: IllegalArgumentException - if count \<= 0 build(): Create a step configuration from this builder. - [≡ SuspendAnchor (enum class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/SuspendAnchor.md): Describes where, within a guest language source section, the suspend position is. BEFORE: Denotes suspension just before execution of a guest language source location. AFTER: Denotes suspension just after execution of a guest language source location. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [◇ SuspendedCallback (interface in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/SuspendedCallback.md): Callback invoked whenever the debugger suspends for a particular session. onSuspend(SuspendedEvent): Called whenever the debugger suspends for a particular session. - [◆ SuspendedEvent (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/SuspendedEvent.md): Access for Debugger clients to the state of a guest language execution thread that has been suspended, for example by a Breakpoint or stepping action. getSession(): Returns the debugger session this suspended event was created for. getSourceSection(): Returns the guest language source section of the AST node before/after the execution is suspended. getSuspendAnchor(): Returns where, within the guest language source section, the suspended position is. hasSourceElement(SourceElement): Returns true if the underlying guest language source location is denoted as the source element. isLanguageContextInitialized(): Test if the language context of the source of the event is initialized. getInputValues(): Returns the input values of the current sourc - [◆ SuspensionFilter (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/SuspensionFilter.md): A filter to limit the suspension locations. newBuilder(): Returns a builder for creating a new suspension filter. isIgnoreLanguageContextInitialization(): Test if execution of language initialization code is to be ignored. - [◆ SuspensionFilter.Builder (class in com.oracle.truffle.api.debug)](com/oracle/truffle/api/debug/SuspensionFilter.Builder.md): A builder for creating a suspension filter. ignoreLanguageContextInitialization(boolean): Set to ignore language initialization code. includeInternal(boolean): Set to include or exclude internal code in the filter. sourceSectionAvailableOnly(boolean): Set to suspend on available source sections only. sourceIs(Predicate): Set a Predicate that filters based on a Source. build(): Create a new suspension filter configured by the builder methods. - [▣ Package com.oracle.truffle.api.dsl](com/oracle/truffle/api/dsl/index.md): Domain specific language that allows to specify specializing AST nodes in a declarative way. - [◆ AOTSupport (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/AOTSupport.md): Helper class to prepare AOT enabled nodes for AOT in RootNode.prepareForAOT. prepareForAOT(RootNode): Recursively prepares an AST for AOT compilation. - [@ Bind (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/Bind.md): Binds and executes an expression at most once for every execution of the node. value(): The extract expression. - [@ Bind.DefaultExpression (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/Bind.DefaultExpression.md): Defines a default bind expression for a given type. value(): The default expression to be used for a particular type. - [@ Cached (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/Cached.md): A parameter annotated with Cached in a Specialization refers to a cached value of a specialization instance. value(): Defines the initializer expression of the cached parameter value. uncached(): Defines the initializer that is used for uncached nodes or uncached versions of exported library messages. dimensions(): Specifies the number of array dimensions to be marked as compilation final. allowUncached(): Allows the value() to be used for uncached(). inline(): Enables inlining of the cached parameter if supported. inlineMethod(): Specifies an alternative method name for node object inlining. parameters(): Specifies the bindings used for the $parameters variable in cached or uncached initializers. we - [@ Cached.Exclusive (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/Cached.Exclusive.md): Disallows any sharing with other cached parameters. - [@ Cached.Shared (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/Cached.Shared.md): Allows sharing between multiple Cached parameters between multiple specializations or exported library messages. value(): Specifies the sharing group of the shared cached element. - [@ CreateCast (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/CreateCast.md): Specifies a factory method that creates a Node which is used to cast this child. - [◆ DSLSupport (abstract class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/DSLSupport.md): APIs to support share code in generated code. lookupEnumConstants(Class): Looks up shared enum constants for DSL generated code. maybeInsert(Node, T): Inserts a node if a NodeInterface dynamically implements Node. maybeInsert(Node, T\[\]): Inserts a node array if a NodeInterface\[\] dynamically implements Node\[\]. assertIdempotence(boolean): Helper method for DSL generated code to assert idempotence. - [◇ DSLSupport.SpecializationDataNode (interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/DSLSupport.SpecializationDataNode.md): Interface implemented by specialization data classes. - [◇ ExecuteTracingSupport (interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/ExecuteTracingSupport.md): Allows tracing of calls to execute methods of a Node. isTracingEnabled(): Invoked by the generated code to determine whether tracing is enabled. Returns: true if tracing is enabled traceOnEnter(Object\[\]): Invoked by the generated execute methods before any Specialization is called, but after all NodeChildren are evaluated. traceOnReturn(Object): Invoked by the generated execute methods when a Specialization returns normally. traceOnException(Throwable): Invoked by the generated execute methods when a Specialization throws an exception. - [@ Executed (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/Executed.md): This annotation declares a child field to be executed and used as dynamic input values for specializations. with(): The with() property allows a node to pass the result of one child's executable as an input to another child's executable. - [@ Fallback (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/Fallback.md): A method annotated with Fallback is treated as a Specialization that implicitly links all the guards of all other declared Specialization annotated methods of the operation in a negated form. - [@ GenerateAOT (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/GenerateAOT.md): Allows nodes with specializations to be prepared for AOT. - [@ GenerateAOT.Exclude (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/GenerateAOT.Exclude.md): Excludes the annotated Specialization from AOT preparation. - [◇ GenerateAOT.Provider (interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/GenerateAOT.Provider.md): Implemented by generated code. prepareForAOT(TruffleLanguage, RootNode): Called and implemented by framework code. prepareForAOT(TruffleLanguage, RootNode, Node): Called and implemented by framework code. - [@ GenerateCached (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/GenerateCached.md): Allows to enable or disable the generation of the cached version of a Truffle DSL node. value(): If true enables the generation of a cached version of this specializing node. inherit(): If true enables inheritance of value() and alwaysInlineCached() to subclasses. alwaysInlineCached(): Configures whether a cached inlinable node is inlined by default. - [@ GenerateInline (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/GenerateInline.md): Generates code for a node that makes this node inlinable when used in cached parameters of specializations. value(): If true enables the generation of a inlined version of this specializing node. inherit(): If true enables inheritance of value() and inlineByDefault() to subclasses. inlineByDefault(): If true the inlined version is used by default when the node is used as a cached argument. - [@ GenerateNodeFactory (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/GenerateNodeFactory.md): Annotate nodes or base classes of nodes to generate factory handlers implementing the NodeFactory interface. value(): If true enables the generation of node factories of this specializing node. inherit(): Inherits the semantics of the annotation to subclasses. - [@ GeneratePackagePrivate (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/GeneratePackagePrivate.md): Make the code generated for an annotated node package-private. - [@ GenerateUncached (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/GenerateUncached.md): Generates an uncached version of a node with specializations. value(): If true enables the generation of an uncached version of this specializing node. inherit(): Inherits the semantics of the annotation to subclasses. - [@ GeneratedBy (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/GeneratedBy.md): Marks a type as being generated based on another class or method of a class. - [@ Idempotent (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/Idempotent.md): Methods annotated with Idempotent must be methods that may cause side effects but will always cause the same side effects for repeated invocations with the same parameters. - [@ ImplicitCast (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/ImplicitCast.md): Marks an implicit cast method. - [@ ImportStatic (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/ImportStatic.md): Imports all public and static methods and fields of the provided classes for the use in DSL expressions of the annotated class or its subclasses. - [◆ InlineSupport (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.md): Contains classes to support node object inlining in Truffle. validate(Node, InlineSupport.InlinableField, …): Shortcut to validate multiple inlinable fields. validate(Node, InlineSupport.InlinableField, InlineSupport.InlinableField): Shortcut to validate multiple inlinable fields. validate(Node, InlineSupport.InlinableField): Shortcut to validate multiple inlinable fields. - [◆ InlineSupport.BooleanField (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.BooleanField.md): Represents a field for boolean primitives in inlined nodes. get(Node): This method returns the value of the target field given a target node. set(Node, boolean): This method sets the value of the target field giving the a target node. create(MethodHandles.Lookup, String): This method creates a new field given a lookup class and a field name. - [◆ InlineSupport.ByteField (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.ByteField.md): Represents a field for byte primitives in inlined nodes. get(Node): This method returns the value of the target field given a target node. set(Node, byte): This method sets the value of the target field giving the a target node. create(MethodHandles.Lookup, String): This method creates a new field given a lookup class and a field name. - [◆ InlineSupport.CharField (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.CharField.md): Represents a field for char primitives in inlined nodes. get(Node): This method returns the value of the target field given a target node. set(Node, char): This method sets the value of the target field giving the a target node. create(MethodHandles.Lookup, String): This method creates a new field given a lookup class and a field name. - [◆ InlineSupport.DoubleField (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.DoubleField.md): Represents a field for double primitives in inlined nodes. get(Node): This method returns the value of the target field given a target node. set(Node, double): This method sets the value of the target field giving the a target node. create(MethodHandles.Lookup, String): This method creates a new field given a lookup class and a field name. - [◆ InlineSupport.FloatField (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.FloatField.md): Represents a field for float primitives in inlined nodes. get(Node): This method returns the value of the target field given a target node. set(Node, float): This method sets the value of the target field giving the a target node. create(MethodHandles.Lookup, String): This method creates a new field given a lookup class and a field name. - [◆ InlineSupport.InlinableField (abstract class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.InlinableField.md): Base class for inlined field references. validate(Node): Validates a receiver of an inlined field. - [◆ InlineSupport.InlineTarget (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.InlineTarget.md): An inline targert for an inlinable node. getTargetClass(): Returns static target class this inlining specification was applied. getPrimitive(int, Class): Requests a primitive field for a given field index. getState(int, int): Requests a state field for a given field index. getReference(int, Class): Requests a reference field for a given field index. create(Class, InlineSupport.InlinableField...): Creates an inline target for an inlined node. - [◆ InlineSupport.IntField (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.IntField.md): Represents a field for int primitives in inlined nodes. get(Node): This method returns the value of the target field given a target node. set(Node, int): This method sets the value of the target field giving the a target node. create(MethodHandles.Lookup, String): This method creates a new field given a lookup class and a field name. - [◆ InlineSupport.LongField (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.LongField.md): Represents a field for long primitives in inlined nodes. get(Node): This method returns the value of the target field given a target node. set(Node, long): This method sets the value of the target field giving the a target node. create(MethodHandles.Lookup, String): This method creates a new field given a lookup class and a field name. - [◆ InlineSupport.ReferenceField (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.ReferenceField.md): Represents a field for references in inlined nodes. get(Node): This method returns the value of the target field given a target node. set(Node, T): This method sets the value of the target field giving the a target node. getVolatile(Node): This method returns the value of the target field given a target node using volatile semantics. compareAndSet(Node, T, T): This method sets the value of the target field giving the a target node and expected value using compare and set semantics. create(MethodHandles.Lookup, String, Class): This method creates a new field given a lookup class, field name and value class. - [@ InlineSupport.RequiredField (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.RequiredField.md): Used to specify fields for node object inlining in inline methods for the inline target. value(): Species which field type is expected. bits(): Specifies the number of bits needed for state fields. type(): 90 Specifies the value type for reference required fields. dimensions(): Specifies the compilation final dimensions of the required inlined field. - [@ InlineSupport.RequiredFields (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.RequiredFields.md): Used to specify multiple RequiredField. value(): Used to specify multiple RequiredField. - [◆ InlineSupport.ShortField (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.ShortField.md): Represents a field for short primitives in inlined nodes. get(Node): This method returns the value of the target field given a target node. set(Node, short): This method sets the value of the target field giving the a target node. create(MethodHandles.Lookup, String): This method creates a new field given a lookup class and a field name. - [◆ InlineSupport.StateField (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.StateField.md): Represents a field for updating state fields in inlined nodes. subUpdater(int, int): Creates a sub updater for a subset of bits in a state field. get(Node): This method returns the value of the target field given a target node. set(Node, int): This method sets the value of the target field giving the a target node. create(MethodHandles.Lookup, String): This method creates a new field given a lookup class and a field name. - [@ InlineSupport.UnsafeAccessedField (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/InlineSupport.UnsafeAccessedField.md): Marks a field to be accessed with unsafe. - [@ Introspectable (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/Introspectable.md): Annotate a DSL operation using this annotation to be introspectable. - [◆ Introspection (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/Introspection.md): Contains introspection utilities for Truffle DSL. isIntrospectable(Node): Returns true if the given node is introspectable. Returns: true if the given node is introspectable getSpecialization(Node, String): Returns introspection information for the first specialization that matches a given method name. Returns: introspection info for the method getSpecialization(Node, Node, String): Like getSpecialization(Node, String) but must be used for nodes that were inlined. Returns: introspection info for the method getSpecialization(Node, int, …): Like getSpecialization(Node, String) but must be used for nodes that were used as part of a bytecode inte - [◇ Introspection.Provider (interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/Introspection.Provider.md): Internal marker interface for DSL generated code to access reflection information. getIntrospectionData(): Returns internal reflection data in undefined format. getIntrospectionData(Node): Returns internal reflection data in undefined format. getIntrospectionData(Node, int): Returns internal reflection data in undefined format. create(Object...): Factory method to create Node introspection data. Returns: wrapped data to be used by Introspection.getSpecializations(com.oracle.truffle.api.nodes.Node) and similar methods - [◆ Introspection.SpecializationInfo (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/Introspection.SpecializationInfo.md): Represents dynamic introspection information of a specialization of a DSL operation. getMethodName(): Returns the method name of the introspected specialization. isActive(): Returns true if the specialization was active at the time when the introspection was performed. isExcluded(): Returns true if the specialization was excluded at the time when the introspection was performed. getInstances(): Returns the number of dynamic specialization instances that are active for this specialization. getCachedData(int): Returns the cached state for a given specialization instance. - [@ NeverDefault (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/NeverDefault.md): Useful to annotate methods, fields or parameters bound by any DSL expression to indicate that it never returns a null or default primitive value. - [@ NodeChild (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/NodeChild.md): A NodeChild element defines an executable child for the enclosing Node. executeWith(): The executeWith() property allows a node to pass the result of one child's executable as an input to another child's executable. implicit(): Allows implicit creation of this child node. implicitCreate(): Defines the initializer expression for implicit child node creation. allowUncached(): Allow this child node to be used in uncached mode. uncached(): Defines the expression to get an uncached instance of the child node. - [@ NodeChildren (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/NodeChildren.md) - [◇ NodeFactory (interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/NodeFactory.md): Enables the dynamic creation of generated nodes. createNode(Object...): Instantiates the node using the arguments array. Returns: the instantiated node Throws: IllegalArgumentException getNodeClass(): Returns the node class that will get created by createNode(Object...). getNodeSignatures(): Returns a list of signatures that can be used to invoke createNode(Object...). getExecutionSignature(): Returns a list of children that will be executed by the created node. getUncachedInstance(): Returns the uncached version of this node or null if GenerateUncached was not applied to the node. - [@ NodeField (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/NodeField.md): A NodeField element defines a field for the generated Node. - [@ NodeFields (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/NodeFields.md): A NodeFields element defines a field for the generated Node. - [@ NonIdempotent (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/NonIdempotent.md): Methods annotated with NonIdempotent must be methods that may cause side effects but may not always cause the same side effects for repeated invocations with the same parameters. - [@ ReportPolymorphism (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/ReportPolymorphism.md): Enables reporting of polymorphic specializations from this node or exported message to the runtime. - [@ ReportPolymorphism.Exclude (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/ReportPolymorphism.Exclude.md): Nodes (and their subclasses) or specializations annotated with this annotation will be excluded from consideration when reporting polymorphic specializations. - [@ ReportPolymorphism.Megamorphic (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/ReportPolymorphism.Megamorphic.md): Specializations annotated with this annotation are considered megamorphic. - [@ Specialization (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/Specialization.md): Defines a method of a node subclass to represent one specialization of an operation. insertBefore(): References a specialization of a super class by its method name where this specialization is inserted before. rewriteOn(): Declares an event guards that trigger re-specialization in case an exception is thrown in the specialization body. replaces(): Declares other specializations of the same operation to be replaced by this specialization. guards(): Declares boolean expressions that define whether or not input values are applicable to this specialization instance. assumptions(): Declares assumption guards that optimistically assume that the state of an Assumption remains valid. - [◆ SpecializationStatistics (class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/SpecializationStatistics.md): Represents a specialization statistics utiltiy that can be entered to collect additional statistics about Truffle DSL nodes. hasData(): Returns true if the statistics did collect any data, else false. printHistogram(PrintWriter): Prints the specialization histogram to the provided writer. printHistogram(PrintStream): Prints the specialization histogram to the provided stream. create(): Creates a new specialization statistics instance. enter(): Enters this specialization instance object on the current thread. leave(SpecializationStatistics): Leaves the currently entered entered statistics. - [@ SpecializationStatistics.AlwaysEnabled (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/SpecializationStatistics.AlwaysEnabled.md): Used on nodes to always enable specialization statistics. - [◆ SpecializationStatistics.NodeStatistics (abstract class in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/SpecializationStatistics.NodeStatistics.md): Class to collect statistics information per node. acceptExecute(int, Class): Called when a node specialization was executed. acceptExecute(int, Class, Class): Called when a node specialization was executed. acceptExecute(int, Class...): Called when a node specialization was executed. resolveValueClass(Object): Called to resolve the class of a value provided in acceptExecute(int, Class). create(Node, String\[\]): Called when a new node statistics object is created. - [@ SuppressPackageWarnings (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/SuppressPackageWarnings.md): Use to suppress Truffle DSL warnings in whole packages using a package-info.java class. - [@ TypeCast (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/TypeCast.md): Overrides the standard way of casting a certain type in a TypeSystem. - [@ TypeCheck (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/TypeCheck.md): Overrides the standard way of checking for a certain type in a TypeSystem. - [@ TypeSystem (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/TypeSystem.md): Type guards are the most common form of guards used in Truffle languages. value(): The list of types as child elements of the TypeSystem. - [@ TypeSystemReference (annotation interface in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/TypeSystemReference.md): References a TypeSystem on a node. value(): The TypeSystem java type. - [⚡︎ UnsupportedSpecializationException (exception in com.oracle.truffle.api.dsl)](com/oracle/truffle/api/dsl/UnsupportedSpecializationException.md): Thrown by the generated code of Truffle-DSL if no compatible Specialization could be found for the provided values. UnsupportedSpecializationException(Node, Node\[\], Object...): Constructs a new UnsupportedSpecializationException. getNode(): Returns the Node that caused the this UnsupportedSpecializationException. getSuppliedNodes(): Returns the children of the Node returned by getNode() which produced the values returned by getSuppliedValues(). getSuppliedValues(): Returns the dynamic values that were supplied to the node.The array returned by getSuppliedNodes() has the same length as the array returned by getSuppliedValues(). - [▣ Package com.oracle.truffle.api.exception](com/oracle/truffle/api/exception/index.md): This package contains a Truffle exception base class. - [⚡︎ AbstractTruffleException (abstract exception in com.oracle.truffle.api.exception)](com/oracle/truffle/api/exception/AbstractTruffleException.md): A base class for an exception thrown during the execution of a guest language program. The following snippet shows the guest language exception implementation. UNLIMITED_STACK_TRACE: The constant for an unlimited stack trace element limit. AbstractTruffleException(): Creates a new AbstractTruffleException. AbstractTruffleException(Node): Creates a new AbstractTruffleException with given location. AbstractTruffleException(String): Creates a new AbstractTruffleException with given message. AbstractTruffleException(String, Node): Creates a new AbstractTruffleException with given message and location. AbstractTruffleException(AbstractTruffleException): Copies the prototype's message, cause, stack trace limit, location, BCI, suppressed exceptions, and Tru - [▣ Package com.oracle.truffle.api.frame](com/oracle/truffle/api/frame/index.md): Package containing stack frame representation classes. - [◇ Frame (interface in com.oracle.truffle.api.frame)](com/oracle/truffle/api/frame/Frame.md): Represents a frame containing values of local variables of the guest language. getFrameDescriptor(): Returns: the object describing the layout of this frame getArguments(): Retrieves the arguments object from this frame. Returns: the arguments used when calling this method materialize(): Materializes this frame, which allows it to be stored in a field or cast to java.lang.Object. Returns: the new materialized frame getObject(int): Read access to a local variable of type Object. Returns: the current value of the local variable Throws: FrameSlotTypeException - if the current value is not of type object expectObject(int): Read and expects a value of type object for a given - [◆ FrameDescriptor (class in com.oracle.truffle.api.frame)](com/oracle/truffle/api/frame/FrameDescriptor.md): Descriptor of the slots of frame objects. FrameDescriptor(): Constructs empty descriptor. FrameDescriptor(Object): Constructs new descriptor with specified getDefaultValue(). copy(): Deeper copy of the descriptor. Returns: new instance of a descriptor with copies of values from this one getDefaultValue(): Default value for the created slots. Returns: value provided to FrameDescriptor(java.lang.Object) getNumberOfSlots(): Returns: the number of indexed slots in this frame descriptor getSlotKind(int): Returns the FrameSlotKind associated with the given indexed slot. Returns: a non-null FrameSlotKind setSlotKind(int, FrameSlotKind): Sets - [◆ FrameDescriptor.Builder (class in com.oracle.truffle.api.frame)](com/oracle/truffle/api/frame/FrameDescriptor.Builder.md): Builder API for frame descriptors with indexed slots. defaultValue(Object): Sets the default value for the frame slots in this frame descriptor. defaultValueIllegal(): Sets the default value to illegal, this means that an FrameSlotTypeException is thrown if a slot is read before it is written. addSlots(int, FrameSlotKind): Adds the given number of consecutive indexed slots to the FrameDescriptor, and initializes them with the given kind. Returns: index of the first slot useSlotKinds(boolean): Enables the use of slot kinds like FrameDescriptor.getSlotKind(int). addSlots(int): Adds the given number of consecutive indexed slots to the FrameDescripto - [◆ FrameExtensions (abstract class in com.oracle.truffle.api.frame)](com/oracle/truffle/api/frame/FrameExtensions.md): Internal frame accessor methods for internal Truffle components that are trusted. getObject(Frame, int): Reads an object from the frame. Throws: FrameSlotTypeException setObject(Frame, int, Object): Stores an Object into the frame. setBoolean(Frame, int, boolean): Stores a boolean into the frame. setByte(Frame, int, byte): Stores a byte into the frame. setInt(Frame, int, int): Stores an int into the frame. setLong(Frame, int, long): Stores a long into the frame. setFloat(Frame, int, float): Stores a float into the frame. setDouble(Frame, int, double): Stores a double into the frame. - [◇ FrameInstance (interface in com.oracle.truffle.api.frame)](com/oracle/truffle/api/frame/FrameInstance.md): Represents a current frame instance on the stack. getFrame(FrameInstance.FrameAccess): Accesses the underlying frame using a specified access mode. getCompilationTier(): Returns an integer for the optimized tier of this method. isCompilationRoot(): Returns whether or not the current frame is a compilation root. getCallNode(): Returns a node representing the callsite of the next new target on the stack. Returns: a node representing the callsite of the next new target on the stack. Returns null in case there is no upper target or getInstrumentableCallNode(): Returns an instrumentable call node from a frame instance. getCallTarget(): The CallTar - [≡ FrameInstance.FrameAccess (enum class in com.oracle.truffle.api.frame)](com/oracle/truffle/api/frame/FrameInstance.FrameAccess.md): Access mode for FrameInstance.getFrame(FrameAccess). READ_ONLY: This mode allows to read the frame and provides read only access to its local variables. READ_WRITE: This mode allows to read the frame and provides read and write access to its local variables. MATERIALIZE: This mode allows to read a materialized version of the frame and provides read and write access to its local variables. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [◇ FrameInstanceVisitor (interface in com.oracle.truffle.api.frame)](com/oracle/truffle/api/frame/FrameInstanceVisitor.md): Callback interface for TruffleRuntime.iterateFrames. - [≡ FrameSlotKind (enum class in com.oracle.truffle.api.frame)](com/oracle/truffle/api/frame/FrameSlotKind.md): fromTag(byte): Converts from the numeric representation used in the implementation of Frame to the FrameSlotKind. Returns: the FrameSlotKind values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [⚡︎ FrameSlotTypeException (exception in com.oracle.truffle.api.frame)](com/oracle/truffle/api/frame/FrameSlotTypeException.md): Exception thrown if the frame slot kind does not match the expected kind. FrameSlotTypeException(): Deprecated. use create(int, FrameSlotKind, FrameSlotKind) instead getSlot(): Returns the frame slot index that was read. getExpectedKind(): Returns the expected frame slot kind when the exception occurred. getActualKind(): Returns the actual frame slot kind when the exception occurred. create(int, FrameSlotKind, FrameSlotKind): Creates a new frame slot type exception. - [◇ MaterializedFrame (interface in com.oracle.truffle.api.frame)](com/oracle/truffle/api/frame/MaterializedFrame.md): Represents a materialized frame containing values of local variables of the guest language. - [◇ VirtualFrame (interface in com.oracle.truffle.api.frame)](com/oracle/truffle/api/frame/VirtualFrame.md): Represents a frame containing values of local variables of the guest language. - [▣ Package com.oracle.truffle.api.instrumentation](com/oracle/truffle/api/instrumentation/index.md): The instrumentation API provides a way to introspect and inject behavior into interpreters written using the Truffle framework. - [◆ AllocationEvent (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/AllocationEvent.md): An event representing an allocation of a guest language value. getLanguage(): Returns the language performing the allocation. getOldSize(): Returns an old size of the value prior to the allocation, in bytes. getNewSize(): Returns a size of the allocated value in bytes. getValue(): Returns the value which is a subject of allocation. - [◆ AllocationEventFilter (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/AllocationEventFilter.md): An instrumentation filter of allocations of guest language values. ANY: A filter that matches all allocations in all languages. newBuilder(): Creates a new AllocationEventFilter instance through a Builder. - [◆ AllocationEventFilter.Builder (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/AllocationEventFilter.Builder.md): A builder of AllocationEventFilter. languages(LanguageInfo...): Specify languages that are instrumented for allocations of guest language values. build(): Create an instance of AllocationEventFilter based on the current setup of this builder. - [◇ AllocationListener (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/AllocationListener.md): Listener to be notified about guest language value allocations. onEnter(AllocationEvent): Notifies about an intent to allocate or re-allocate a guest language value. onReturnValue(AllocationEvent): Notifies about an allocated guest language value. - [◆ AllocationReporter (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/AllocationReporter.md): Reporter of guest language value allocations. SIZE_UNKNOWN: Constant specifying an unknown size. addActiveListener(Consumer): Add a listener that is notified when active value of this reporter changes. removeActiveListener(Consumer): Remove a listener that is notified when active value of this reporter changes. isActive(): Test if the reporter instance is actually doing some reporting when notify methods are called. Returns: true when there are some AllocationListeners attached, false otherwise. onEnter(Object, long, long): Report an intent to allocate a new guest language value, or re-allocate an existing one. onReturnValue(Object, long, - [◇ ContextsListener (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/ContextsListener.md): Listener to be notified about changes of contexts in guest language application. onContextCreated(TruffleContext): Notifies about creation of a new polyglot context. onLanguageContextCreate(TruffleContext, LanguageInfo): Notifies before creation of a language-specific context in an existing polyglot context. onLanguageContextCreated(TruffleContext, LanguageInfo): Notifies about creation of a language-specific context in an existing polyglot context. onLanguageContextCreateFailed(TruffleContext, LanguageInfo): Notifies after failed creation of a language-specific context in an existing polyglot context. onLanguageContextInitialize(TruffleContext, LanguageInfo): Notifies bef - [◆ EventBinding (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/EventBinding.md): An instrumentation handle for a subscription to a filtered stream of execution event notifications. getElement(): Returns: the subscriber: an ExecutionEventNodeFactory or ExecutionEventListener. isAttached(): Test if this binding is attached. attach(): Attach this binding to receive the associated notifications by the subscriber. Throws: IllegalStateException - when the binding is attached already, or when it was disposed. tryAttach(): Try to attach this binding, if not disposed or attached already. Returns: true when the binding was attached successfully, false when disposed or attached already. isDisposed(): Returns: whether the subscription has been permanently canceled. dispose(): Cancel - [◆ EventContext (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/EventContext.md): Represents the context of an execution event. hasTag(Class): Returns true if the underlying instrumented AST is tagged with a particular tag. getNodeObject(): Returns a language provided object that represents the instrumented node properties. getInstrumentedSourceSection(): Returns the SourceSection that is being instrumented. getInstrumentedNode(): Accessor to the instrumented node at which the event occurred. isLanguageContextInitialized(): Test if language context of the source of the event is initialized. lookupExecutionEventNode(EventBinding): Returns the execution event node that was inserted at this location given an event binding - [◆ ExecuteSourceEvent (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/ExecuteSourceEvent.md): Represents a source execute event from a ExecuteSourceListener. getSource(): Returns the executed source that caused this event. - [◇ ExecuteSourceListener (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/ExecuteSourceListener.md): A listener attached by an Instrumenter to specific sources of a guest language program to listen to execute source events. onExecute(ExecuteSourceEvent): Invoked whenever a new source is executed. - [◇ ExecutionEventListener (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/ExecutionEventListener.md): A listener attached by an Instrumenter to specific locations of a guest language program to listen to execution events. onEnter(EventContext, VirtualFrame): Invoked immediately before the instrumented node is executed. onReturnValue(EventContext, VirtualFrame, Object): Invoked immediately after an instrumented node is successfully executed. onReturnExceptional(EventContext, VirtualFrame, Throwable): Invoked immediately after an instrumented node did not successfully execute. onUnwind(EventContext, VirtualFrame, Object): Invoked when an instrumented node is unwound from the execution stack by unwind throwable thrown in this listener instance. Returns: null to continue to unwind the parent nod onYield(EventContex - [◆ ExecutionEventNode (abstract class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/ExecutionEventNode.md): An event node created by an ExecutionEventNodeFactory for a specific locations of a guest language program to listen to instrumentation events. onEnter(VirtualFrame): Invoked immediately before the instrumented node is executed. onInputValue(VirtualFrame, EventContext, …): Invoked immediately after each return value event of instrumented input child node that match the input filter. onReturnValue(VirtualFrame, Object): Invoked immediately after an instrumented node is successfully executed. onReturnExceptional(VirtualFrame, Throwable): Invoked immediately after the execution of an instrumented node resulted in an exception. onUnwind(VirtualFrame, Object): Invoked when an instrumented node is unwound from the execution stack by unwind - [◇ ExecutionEventNodeFactory (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/ExecutionEventNodeFactory.md): Event node factories are factories of event nodes for a program location. create(EventContext): Returns a new instance of ExecutionEventNode for this particular source location. Returns: a new event node instance, or null for no event node at the location - [@ GenerateWrapper (annotation interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/GenerateWrapper.md): Generates a default wrapper subclass of an annotated InstrumentableNode subclass. yieldExceptions(): Exceptions that are thrown to yield the execution of a thread. resumeMethodPrefix(): Prefix of methods that resume execution after yield. - [@ GenerateWrapper.Ignore (annotation interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/GenerateWrapper.Ignore.md): Annotates a method which should not be instrumented in the generated wrapper subclass. - [@ GenerateWrapper.IncomingConverter (annotation interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/GenerateWrapper.IncomingConverter.md): Annotates a method to be used as incoming value converter. - [@ GenerateWrapper.OutgoingConverter (annotation interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/GenerateWrapper.OutgoingConverter.md): Annotates a method to be used as outgoing value converter. - [◇ GenerateWrapper.YieldException (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/GenerateWrapper.YieldException.md): An interface to be implemented by yield exceptions. getYieldValue(): Get the value provided by the yield. - [◇ InstrumentableNode (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/InstrumentableNode.md): Interface implemented by AST nodes that may be instrumentable: an AST location where Truffle instruments are permitted to listen to before and after using execution event listeners. isInstrumentable(): Returns true if this node is instrumentable. createWrapper(ProbeNode): Returns a new, never adopted, unshared wrapper node implementation for this instrumentable node. Returns: a wrapper implementation findProbe(): Determines how to find a probe given an instrumentable node. hasTag(Class): Returns true if this node should be considered tagged by a given tag else false. Returns: true if the node should be considered tagged by a tag else false. getNodeObject(): Returns an interop capable object that contains all keys and values of attributes associated with this node. Returns - [◇ InstrumentableNode.WrapperNode (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/InstrumentableNode.WrapperNode.md): Nodes that the instrumentation framework inserts into guest language ASTs (between instrumentable guest language nodes and their parents) for the purpose of interposing on execution events and reporting them via the instrumentation framework. getDelegateNode(): The instrumentable guest language node, adopted as a child, whose execution events the wrapper reports to the instrumentation framework. getProbeNode(): A child of the wrapper, through which the wrapper reports execution events related to the guest language delegate node. - [◆ Instrumenter (abstract class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/Instrumenter.md): Provides capabilities to attach listeners for execution, load, output and allocation events. attachExecutionEventListener(SourceSectionFilter, T): Starts execution event notification for a given event filter and listener. attachExecutionEventFactory(SourceSectionFilter, T): Starts execution event notification for a given event filter and factory. attachExecutionEventFactory(SourceSectionFilter, SourceSectionFilter, T): Starts execution event notification for a given event filter and factory. attachExecutionEventFactory(NearestSectionFilter, SourceSectionFilter, T): Starts execution event notification for the nearest SourceSection as specified by the NearestSectionFilter. Returns: a ha - [◆ LoadSourceEvent (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/LoadSourceEvent.md): Represents a source load event from a LoadSourceListener. getSource(): Returns the loaded source that caused this event. - [◇ LoadSourceListener (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/LoadSourceListener.md): A listener attached by an Instrumenter to specific locations of a guest language program to listen to load source events. onLoad(LoadSourceEvent): Invoked whenever a new source is loaded. - [◆ LoadSourceSectionEvent (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/LoadSourceSectionEvent.md): Represents a source section load event from a LoadSourceSectionListener. getSourceSection(): Returns the loaded source section that caused this event. getNode(): Returns the instrumentable Truffle node that caused this event. - [◇ LoadSourceSectionListener (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/LoadSourceSectionListener.md): A listener attached by an Instrumenter to specific locations of a guest language program to listen to sources section load events. onLoad(LoadSourceSectionEvent): Invoked whenever a new source section is loaded. - [◆ NearestSectionFilter (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/NearestSectionFilter.md): Add a filter for source sections that are nearest to the given source position, according to the guest language control flow. newBuilder(int, int): Creates a new NearestSectionFilter using a builder pattern. Returns: a new builder to create new NearestSectionFilter instances toString(): Returns: the filter attributes in a human readable form for debugging. - [◆ NearestSectionFilter.Builder (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/NearestSectionFilter.Builder.md): Builder to configure NearestSectionFilter before creating its instance. anchorStart(boolean): Specify the nearest anchor. Returns: the builder to chain calls tagIs(Class...): Specify tags of the nearest source section. Returns: the builder to chain calls build(): Finalizes and constructs the NearestSectionFilter instance. Returns: the built filter - [◆ ProbeNode (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/ProbeNode.md): Represents an event sink for instrumentation events that is embedded in the AST using wrappers if needed. UNWIND_ACTION_REENTER: A constant that performs reenter of the current node when returned from ExecutionEventListener.onUnwind(EventContext, VirtualFrame, Object) or ExecutionEventNode.onUnwind(VirtualFrame, Object). onEnter(VirtualFrame): Should get invoked before the node is invoked. onReturnValue(VirtualFrame, Object): Should get invoked after the node is invoked successfully. copy(): Creates a shallow copy of this node. Returns: the new copy onReturnExceptionalOrUnwind(VirtualFrame, Throwable, boolean): Should get invoked if the node did not complete successfully and handle a possible unwi - [@ ProvidedTags (annotation interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/ProvidedTags.md): Specifies a set of tags that are provided by a language implementation. value(): Returns: the set of tags that are provided by the language implementation. - [◆ SourceFilter (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/SourceFilter.md): A source filter represents an expression for a subset of guest language sources that are used in an Truffle interpreter. ANY: A filter that matches any source. newBuilder(): Creates a new SourceFilter expression using a builder pattern. Returns: a new builder to create new SourceFilter instances - [◆ SourceFilter.Builder (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/SourceFilter.Builder.md): Configure your own SourceFilter before creating its instance. sourceIs(Source...): Add a filter for one of the given sources. sourceIs(Predicate): Adds custom predicate to filter inclusion of sources. languageIs(String...): Add a filter for all sources that specify one of the given language ID. Returns: the builder to chain calls includeInternal(boolean): Add a filter that includes or excludes internal sources. Returns: the builder to chain calls build(): Finalizes and constructs the SourceFilter instance. Returns: the built filter expression - [◆ SourceSectionFilter (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/SourceSectionFilter.md): A source section filter represents an expression for a subset of tagged source sections that are used in an Truffle interpreter. ANY: A filter that matches everything. newBuilder(): Creates a new SourceSectionFilter expression using a builder pattern. Returns: a new builder to create new SourceSectionFilter instances toString(): Returns: the filter expressions in a human readable form for debugging. includes(Node): Checks if the filter includes the given node, i.e. Returns: True of the filter includes the node, false otherwise. includes(RootNode, SourceSection, Set): Checks if the filter includes the given root node, i.e. Returns: true if the filter includes the source section and node. false otherwise. - [◆ SourceSectionFilter.Builder (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/SourceSectionFilter.Builder.md): Configure your own SourceSectionFilter before creating its instance. sourceFilter(SourceFilter): Add a source filter. sourceIs(Source...): Add a filter for all source sections that reference one of the given sources. sourceIs(SourceSectionFilter.SourcePredicate): Adds custom predicate to filter inclusion of sources. rootNameIs(Predicate): Adds custom predicate to filter inclusion for root names. mimeTypeIs(String...): Add a filter for all source sections that declare one of the given mime-types. Returns: the builder to chain calls tagIs(Class...): Add a filter for all source sections that are tagged with one of the given tags. Returns: the builder to chain call - [◆ SourceSectionFilter.IndexRange (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/SourceSectionFilter.IndexRange.md): Represents a range between two indices within a source section filter. between(int, int): Constructs a new index range between one a first index inclusive and a second index exclusive. Returns: a new index range Throws: IllegalArgumentException - if parameter invariants are violated byLength(int, int): Constructs a new index range with a given first index inclusive and a given length. Returns: a new index range Throws: IllegalArgumentException - if parameter invariants are violated toString(): Returns: a human readable version of the index range - [◇ SourceSectionFilter.SourcePredicate (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/SourceSectionFilter.SourcePredicate.md): Represents a predicate for source objects. test(Source): Returns true if the given source should be tested positive and false if the sources should be filtered. - [◆ StandardTags (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/StandardTags.md): Set of standard tags usable by language agnostic tools. - [◆ StandardTags.CallTag (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/StandardTags.CallTag.md): Marks program locations that represent a call to other guest language functions, methods or closures. - [◆ StandardTags.ExpressionTag (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/StandardTags.ExpressionTag.md): Marks program locations as to be considered expressions of the languages. - [◆ StandardTags.ReadVariableTag (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/StandardTags.ReadVariableTag.md): Marks program locations to be considered as reads of variables of the languages. NAME: Property of the node object that contains name of the variable. - [◆ StandardTags.RootBodyTag (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/StandardTags.RootBodyTag.md): Marks program locations as bodies of a function, method or closure. - [◆ StandardTags.RootTag (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/StandardTags.RootTag.md): Marks program locations as root of a function, method or closure. - [◆ StandardTags.StatementTag (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/StandardTags.StatementTag.md): Marks program locations that represent a statement of a language. - [◆ StandardTags.TryBlockTag (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/StandardTags.TryBlockTag.md): Marks program locations to be considered as try blocks, that are followed by catch. CATCHES: Name of the catches function. - [◆ StandardTags.WriteVariableTag (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/StandardTags.WriteVariableTag.md): Marks program locations to be considered as writes of variables of the languages. NAME: Property of the node object that contains name of the variable. - [◆ Tag (abstract class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/Tag.md): Base class for tags used in the Truffle instrumentation framework. Tag(): No instances of tags allowed. findProvidedTag(LanguageInfo, String): Finds a provided tag by the language using its identifier. getIdentifier(Class): Returns the alias of a particular tag or null if no alias was specified for this tag. Returns: the alias string - [@ Tag.Identifier (annotation interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/Tag.Identifier.md): Annotation applied to Tag subclasses to specify the tag identifier. value(): Returns the identifier value as string. - [◇ ThreadsActivationListener (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/ThreadsActivationListener.md): Listener that allows to be notified when threads become active and deactivated. onEnterThread(TruffleContext): Notified when a context is entered on the current thread. onLeaveThread(TruffleContext): Notified when a context is entered on the current thread. - [◇ ThreadsListener (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/ThreadsListener.md): Listener to be notified about changes of threads in guest language application. onThreadInitialized(TruffleContext, Thread): Notifies about initialization of a thread to be used for a guest language execution in a TruffleContext. onThreadDisposed(TruffleContext, Thread): Notifies about disposal of thread-related resources that were used for a guest language execution in a TruffleContext. - [◆ TruffleInstrument (abstract class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/TruffleInstrument.md): The service provider interface (SPI) for Truffle instruments: clients of Truffle instrumentation that may observe and inject behavior into interpreters written using the Truffle framework. TruffleInstrument(): Constructor for subclasses. locals: Provider for creating context local and context thread local references. onCreate(TruffleInstrument.Env): Invoked once on each newly allocated TruffleInstrument instance. onPreinitialize(TruffleInstrument.Env): Invoked once on an initialized instrument when its engine is preinitialized. Returns: true if the instrument state can be retained in the preinitialized engine, or false to fail en onFinalize(TruffleInstrument.Env): Invoked once on an instance just before all instruments and languages are going to be disposed, possibly because the - [◇ TruffleInstrument.ContextLocalFactory (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/TruffleInstrument.ContextLocalFactory.md): Context local factory for Truffle instruments. create(TruffleContext): Returns a new value for a context local of an instrument. - [◆ TruffleInstrument.ContextLocalProvider (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/TruffleInstrument.ContextLocalProvider.md): Provider for creating context local and context thread local references. createContextLocal(TruffleInstrument.ContextLocalFactory): Creates a new context local reference for this instrument. createContextThreadLocal(TruffleInstrument.ContextThreadLocalFactory): Creates a new context thread local reference for this Truffle language. - [◇ TruffleInstrument.ContextThreadLocalFactory (interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/TruffleInstrument.ContextThreadLocalFactory.md): Context local factory for Truffle instruments. create(TruffleContext, Thread): Returns a new value for a context thread local for a context and thread. - [◆ TruffleInstrument.Env (class in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/TruffleInstrument.Env.md): Access to instrumentation services as well as input, output, and error streams. getInstrumenter(): Returns the instrumenter which lets you instrument guest language ASTs. in(): Input associated with org.graalvm.polyglot.Engine this instrument is being executed in. Returns: reader, never null out(): Standard output writer for org.graalvm.polyglot.Engine this instrument is being executed in. Returns: writer, never null err(): Standard error writer for org.graalvm.polyglot.Engine this instrument is being executed in. Returns: writer, never null startServer(URI, MessageEndpoint): Start a server at the provided URI via the MessageTransport service. Returns: an implementation o - [@ TruffleInstrument.Registration (annotation interface in com.oracle.truffle.api.instrumentation)](com/oracle/truffle/api/instrumentation/TruffleInstrument.Registration.md): Annotation that registers an instrument implementations for automatic discovery. id(): A custom machine identifier for this instrument. name(): The name of the instrument in an arbitrary format for humans. version(): The version for instrument in an arbitrary format. internal(): Specifies whether the instrument is accessible using the polyglot API. services(): Declarative list of classes this instrument is known to provide. Returns: list of service types that this instrument can provide website(): A link to a website with more information about the instrument. sandbox(): Specifies the most strict sandbox policy in which the instrument can be used. internalResources(): Decl - [▣ Package com.oracle.truffle.api.instrumentation.provider](com/oracle/truffle/api/instrumentation/provider/index.md): This package contains a provider to instantiate a Truffle instrument. - [◆ TruffleInstrumentProvider (abstract class in com.oracle.truffle.api.instrumentation.provider)](com/oracle/truffle/api/instrumentation/provider/TruffleInstrumentProvider.md): Used to register a TruffleInstrument using a ServiceLoader. TruffleInstrumentProvider(): Constructor to be called by subclasses. getInstrumentClassName(): Returns the name of a class implementing the TruffleInstrument. create(): Creates a new instance of a TruffleInstrument. getServicesClassNames(): Returns the class names of provided services. getInternalResourceIds(): Returns ids of provided internal resources. createInternalResource(String): Creates an instrument InternalResource identified by the resourceId. Throws: IllegalArgumentException - if resourceId is not supported by this instrument - [▣ Package com.oracle.truffle.api.interop](com/oracle/truffle/api/interop/index.md): This package contains classes that specify the contract for inter-operability between Truffle guest languages and tools. - [⚡︎ ArityException (exception in com.oracle.truffle.api.interop)](com/oracle/truffle/api/interop/ArityException.md): An exception thrown if a executable or instantiable object was provided with the wrong number of arguments. getExpectedMinArity(): Returns the minimum number of arguments that are expected. getExpectedMaxArity(): Returns the maximum number of arguments that are expected. getActualArity(): Returns the actual number of arguments provided by the foreign access. Returns: the number of provided arguments create(int, int, int): Creates an ArityException to indicate that the wrong number of arguments were provided. create(int, int, …): Creates an ArityException to indicate that the wrong number of arguments were provided. - [≡ ExceptionType (enum class in com.oracle.truffle.api.interop)](com/oracle/truffle/api/interop/ExceptionType.md): Represents a type of a Truffle exception. EXIT: Indicates that the application was soft-exited within the guest language program. INTERRUPT: Indicates that the application thread was interrupted by an InterruptedException. RUNTIME_ERROR: Indicates a guest language error. PARSE_ERROR: Indicates a parser or syntax error. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [⚡︎ HeapIsolationException (exception in com.oracle.truffle.api.interop)](com/oracle/truffle/api/interop/HeapIsolationException.md): Exception thrown when a TruffleObject cannot unbox a host object because the object resides in a foreign heap. create(): Creates a new HeapIsolationException indicating that a host object cannot be unboxed because it was allocated in a foreign heap. create(Throwable): Creates a new HeapIsolationException indicating that a host object cannot be unboxed because it was allocated in a foreign heap. - [⚡︎ InteropException (abstract exception in com.oracle.truffle.api.interop)](com/oracle/truffle/api/interop/InteropException.md): Common super class for exceptions that can occur when sending interop messages. getCause(): Returns the cause of an interop exception. fillInStackTrace(): No stack trace for interop exceptions. - [◆ InteropLibrary (abstract class in com.oracle.truffle.api.interop)](com/oracle/truffle/api/interop/InteropLibrary.md): Represents the library that specifies the interoperability message protocol between Truffle languages, tools and embedders. isNull(Object): Returns true if the receiver represents a null like value, else false. isBoolean(Object): Returns true if the receiver represents a boolean like value, else false. asBoolean(Object): Returns the Java boolean value if the receiver represents a boolean like value. Throws: UnsupportedMessageException - if and only if isBoolean(Object) returns false for the same receiver. isExecutable(Object): Returns true if the receiver represents an executable value, else false. execute(Object, Object...): Executes an executable value with the given arguments. Throws: UnsupportedTypeException - - [⚡︎ InvalidArrayIndexException (exception in com.oracle.truffle.api.interop)](com/oracle/truffle/api/interop/InvalidArrayIndexException.md): An exception thrown if an array does not contain a element with an index. getInvalidIndex(): Returns the invalid index that was used. create(long): Creates an InvalidArrayIndexException to indicate that an array index is invalid. create(long, Throwable): Creates an InvalidArrayIndexException to indicate that an array index is invalid. - [⚡︎ InvalidBufferOffsetException (exception in com.oracle.truffle.api.interop)](com/oracle/truffle/api/interop/InvalidBufferOffsetException.md): An exception thrown if a buffer access if out of bounds. getByteOffset(): Returns the start byte offset of the invalid access from the start of the buffer. getLength(): Returns the length of the accessed memory region in bytes starting from the start byte offset. create(long, long): Creates an InvalidBufferOffsetException to indicate that a buffer access is invalid. create(long, long, Throwable): Creates an InvalidBufferOffsetException to indicate that a buffer access is invalid. - [◆ NodeLibrary (abstract class in com.oracle.truffle.api.interop)](com/oracle/truffle/api/interop/NodeLibrary.md): Node Library provides access to guest language information associated with a particular Node location. hasScope(Object, Frame): Returns true, if the node is in a scope containing local variables, else false. getScope(Object, Frame, boolean): Get an object representing a local scope containing variables visible at the node location. Returns: An interop object with InteropLibrary.isScope(Object) being true. Throws: Unsupported hasReceiverMember(Object, Frame): Returns true, if there is a named receiver object, else false. getReceiverMember(Object, Frame): Returns an object that represents the receiver name when available. Returns: an interop string object. Throws: UnsupportedMessageException - if - [⚡︎ StopIterationException (exception in com.oracle.truffle.api.interop)](com/oracle/truffle/api/interop/StopIterationException.md): An exception thrown if an iterator is finished. create(): Creates an StopIterationException to indicate that iteration was stopped. create(Throwable): Creates an StopIterationException to indicate that iteration was stopped. - [◇ TruffleObject (interface in com.oracle.truffle.api.interop)](com/oracle/truffle/api/interop/TruffleObject.md): Interface for any entity of a Truffle guest language implementations that can be shared across other language implementations. - [⚡︎ UnknownIdentifierException (exception in com.oracle.truffle.api.interop)](com/oracle/truffle/api/interop/UnknownIdentifierException.md): An exception thrown if an object does not contain a member with such an identifier. getUnknownIdentifier(): Returns the identifier that could not be accessed. Returns: the unaccessible identifier create(String): Creates an UnknownIdentifierException to indicate that an identifier is missing. create(String, Throwable): Creates an UnknownIdentifierException to indicate that an identifier is missing. - [⚡︎ UnknownKeyException (exception in com.oracle.truffle.api.interop)](com/oracle/truffle/api/interop/UnknownKeyException.md): An exception thrown if an object does not contain a hash entry with such a key. getUnknownKey(): Returns the hash key that could not be accessed. create(Object): Creates an UnknownKeyException to indicate that a key is missing in the hash object. create(Object, Throwable): Creates an UnknownKeyException to indicate that a key is missing in the hash object. - [⚡︎ UnsupportedMessageException (exception in com.oracle.truffle.api.interop)](com/oracle/truffle/api/interop/UnsupportedMessageException.md): An exception thrown if a TruffleObject does not support a interop message. create(): Creates an UnsupportedMessageException to indicate that an interop message is not supported. create(Throwable): Creates an UnsupportedMessageException to indicate that an interop message is not supported. - [⚡︎ UnsupportedTypeException (exception in com.oracle.truffle.api.interop)](com/oracle/truffle/api/interop/UnsupportedTypeException.md): An exception thrown if a TruffleObject does not support the type of one or more arguments. getSuppliedValues(): Returns the arguments of the foreign object access that were not supported by the TruffleObject. Returns: the unsupported arguments create(Object\[\]): Creates an UnsupportedTypeException to indicate that an argument type is not supported. create(Object\[\], String): Creates an UnsupportedTypeException to indicate that an argument type is not supported. create(Object\[\], String, Throwable): Creates an UnsupportedTypeException to indicate that an argument type is not supported. - [▣ Package com.oracle.truffle.api.io](com/oracle/truffle/api/io/index.md): This package contains I/O related classes used by com.oracle.truffle.api.TruffleLanguage implementations. - [◆ TruffleProcessBuilder (class in com.oracle.truffle.api.io)](com/oracle/truffle/api/io/TruffleProcessBuilder.md): A builder used to create an external subprocess. command(List): Sets the executable and arguments. Returns: this builder command(String...): Sets the executable and arguments. Returns: this builder directory(TruffleFile): Sets this process current working directory. Returns: this builder redirectErrorStream(boolean): If true the standard error output is merged into standard output. Returns: this builder redirectInput(ProcessHandler.Redirect): Sets the standard input source. Returns: this builder redirectOutput(ProcessHandler.Redirect): Sets the standard output destination. Returns: this builder redirectError(ProcessHandler.Redirect): Sets th - [▣ Package com.oracle.truffle.api.library](com/oracle/truffle/api/library/index.md): Truffle Libraries allow language implementations to use polymorphic dispatch for receiver types with support for implementation specific caching/profiling and customization of the dispatch. - [@ CachedLibrary (annotation interface in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/CachedLibrary.md): The cached library annotation allows to use Truffle Libraries conveniently in specializations or exported messages. value(): Sets the specialized value expression when using specialized libraries. limit(): Sets the limit expression when using dispatched libraries. - [◆ DynamicDispatchLibrary (abstract class in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/DynamicDispatchLibrary.md): A library that allows to dynamically dispatch to export library classes. DynamicDispatchLibrary(): Constructor for generated subclasses. dispatch(Object): Returns a class that exports at least one library with an explicit receiver. cast(Object): Cast the object receiver type to the dispatched type. getFactory(): Returns the library factory for DynamicDispatchLibrary. - [@ ExportLibrary (annotation interface in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/ExportLibrary.md): Allows to export messages of Truffle libraries. value(): The library class that specifies the messages that are exported. receiverType(): The explicit receiver type to use if specified. delegateTo(): Automatically forwards all messages of the library which are not exported to the value of a delegate field. priority(): Specifies the priority for service provider lookup based default exports. transitionLimit(): By default export libraries don't allow changes in the behavior of accepts for a receiver instance. useForAOT(): Enables AOT preparation for this export. useForAOTPriority(): Specifies the priority for the export when used for AOT prep - [@ ExportLibrary.Repeat (annotation interface in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/ExportLibrary.Repeat.md): Repeat annotation for ExportLibrary. value(): Repeat value for ExportLibrary. - [@ ExportMessage (annotation interface in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/ExportMessage.md): Exports the annotated method or class as library message. name(): Returns the message simple name to export. library(): Returns the library to export by this method or class. limit(): Specifies the limit of an exported message. - [@ ExportMessage.Ignore (annotation interface in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/ExportMessage.Ignore.md): Explicitly ignores warning messages originating from the ExportLibrary annotation. - [@ ExportMessage.Repeat (annotation interface in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/ExportMessage.Repeat.md) - [@ GenerateLibrary (annotation interface in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/GenerateLibrary.md): Libraries are specified with public and abstract Java classes that extend the Library class and are annotated by @GenerateLibrary. assertions(): Specifies an assertion wrapper class that can be used to verify pre and post conditions of a library. receiverType(): Restricts the receiver type for exports that implement this library. defaultExportLookupEnabled(): Allows the library to lookup additional default exports using a service provider interface. dynamicDispatchEnabled(): Allows the use of DynamicDispatchLibrary with this library. pushEncapsulatingNode(): Enables push and pop of the encapsulating node when a library transitions from cached to uncached. - [@ GenerateLibrary.Abstract (annotation interface in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/GenerateLibrary.Abstract.md): Makes a library message abstract, but allows to keep a default implementation. ifExported(): Specifies a message to be abstract only if another message is implemented. ifExportedAsWarning(): Specifies a message to be abstract only if another message is implemented. replacementOf(): A tool to deprecate and replace messages during library evolution. replacementMethod(): Specifies a custom replacement method to handle delegation for a message declared with replacementOf(). - [@ GenerateLibrary.DefaultExport (annotation interface in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/GenerateLibrary.DefaultExport.md): Specifies library implementations provided by default as a fallback. - [@ GenerateLibrary.DefaultExport.Repeat (annotation interface in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/GenerateLibrary.DefaultExport.Repeat.md) - [◆ Library (abstract class in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/Library.md): Base class for all Truffle library specifications. Library(): Default constructor for sub-classes. accepts(Object): Returns true if this library instance supports sending messages with the given receiver. - [◆ LibraryExport (abstract class in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/LibraryExport.md): Base class for generated export classes. LibraryExport(Class, Class, boolean): Constructor for generated code. LibraryExport(Class, Class, …): Constructor for generated code. createUncached(Object): Implemented generated by ExportLibrary. createCached(Object): Implemented generated by ExportLibrary. assertAdopted(Node): Internal method for generated code only. createDelegate(LibraryFactory, T): Internal method for generated code only. createMessageBitSet(LibraryFactory, String...): Internal method for generated code only. register(Class, LibraryExport...): Called only by code generated by ExportLibrary. - [◇ LibraryExport.DelegateExport (interface in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/LibraryExport.DelegateExport.md): Internal interface for generated code only. readDelegateExport(Object): Internal method for generated code only. getDelegateExportMessages(): Internal method for generated code only. getDelegateExportLibrary(Object): Internal method for generated code only. - [◆ LibraryFactory (abstract class in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/LibraryFactory.md): Library factories allow to create instances of libraries used to call library messages. LibraryFactory(Class, List): Deprecated. new versions of the library generator won't use this constructor anymore Constructor for generated subclasses. LibraryFactory(Class, List, boolean): Constructor for generated subclasses. createDispatched(int): Creates a new cached and automatically dispatched library given a limit. create(Object): Creates a new manually dispatched cached library for a given receiver. createAOT(LibraryExport): Creates an AOT version for a library export. getUncached(): Returns an uncached automatically dispatched version of the library. getUncached(Object): Returns an un - [◆ Message (abstract class in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/Message.md): Represents a description of library message. getId(): Returns a unique message id within a library. Returns: a non-negative message id or -1 if the message is not assigned a unique id. getQualifiedName(): Returns a qualified and unique name of this message. getSimpleName(): Returns the simple name of this message. getLibraryName(): Returns the name of the library of this message. getReturnType(): Returns the return type of the message. getReceiverType(): Returns the receiver type of the message. getParameterTypes(): Returns all parameter types including the receiver type of the message. getParameterType(int): Just like getParameterTypes( - [◆ ReflectionLibrary (abstract class in com.oracle.truffle.api.library)](com/oracle/truffle/api/library/ReflectionLibrary.md): The reflection library allows to send to and proxy messages of receivers. ReflectionLibrary(): Constructor for generated subclasses. send(Object, Message, Object...): Sends a given message to the target receiver with the provided arguments. Throws: Exception getFactory(): Returns the library factory for ReflectionLibrary. getUncached(): Returns the uncached automatically dispatched version of the reflection library. getUncached(Object): Returns the uncached manually dispatched version of the reflection library. - [▣ Package com.oracle.truffle.api.library.provider](com/oracle/truffle/api/library/provider/index.md): This package contains service provider interfaces used by Truffle libraries. - [◇ DefaultExportProvider (interface in com.oracle.truffle.api.library.provider)](com/oracle/truffle/api/library/provider/DefaultExportProvider.md): Service provider interface implemented by external default exports of a library. getLibraryClassName(): Returns the class name of the library to be used. getDefaultExport(): Returns the default export class to be used for this provider. getReceiverClass(): Returns the receiver class of the default export. getPriority(): Returns the priority used when multiple default exports would be applicable. - [◇ EagerExportProvider (interface in com.oracle.truffle.api.library.provider)](com/oracle/truffle/api/library/provider/EagerExportProvider.md): Service provider interface implemented by library exports if they needed to be loaded eagerly with a library. ensureRegistered(): Ensures that the export is registered and usable. getLibraryClassName(): Returns the class name of the library to be used. - [▣ Package com.oracle.truffle.api.memory](com/oracle/truffle/api/memory/index.md): This package contains memory related classes used by com.oracle.truffle.api.TruffleLanguage implementations. - [◆ ByteArraySupport (abstract class in com.oracle.truffle.api.memory)](com/oracle/truffle/api/memory/ByteArraySupport.md): Utility methods to write to and read from arrays of bytes. littleEndian(): Enables accessing multibyte Java primitives from byte arrays in little-endian order. bigEndian(): Enables accessing multibyte Java primitives from byte arrays in big-endian order. inBounds(byte\[\], int, int): Checks if an access is in bounds of the given buffer. Returns: True if the access is in bounds, false otherwise inBounds(byte\[\], long, long): Checks if an access is in bounds of the given buffer. Returns: True if the access is in bounds, false otherwise getByte(byte\[\], int): Reads the byte at the given byte offset from the start of the buffer. Returns: the byte at the given - [▣ Package com.oracle.truffle.api.nodes](com/oracle/truffle/api/nodes/index.md): Abstract syntax tree nodes are the basic building block for your com.oracle.truffle.api.TruffleLanguage. - [◆ BlockNode (abstract class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/BlockNode.md): Represents a standard node for guest language blocks. NO_ARGUMENT: Use when no argument is needed for the block node. BlockNode(T\[\]): Internal constructor for implementations. executeVoid(VirtualFrame, int): Executes the block and returns no value. executeGeneric(VirtualFrame, int): Executes the block and returns a generic value. executeByte(VirtualFrame, int): Executes the block and returns a byte value. Throws: UnexpectedResultException executeShort(VirtualFrame, int): Executes the block and returns a short value. Throws: UnexpectedResultException executeInt(VirtualFrame, int): Executes the block and returns an int value. Throws: UnexpectedResu - [◇ BlockNode.ElementExecutor (interface in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/BlockNode.ElementExecutor.md): Represents a contract how block element nodes can be executed. executeVoid(VirtualFrame, T, …): Executes the block node element without expecting any return value. executeGeneric(VirtualFrame, T, …): Executes the block node element and expects a generic value. executeBoolean(VirtualFrame, T, …): Executes the block node element and expects a boolean value. Throws: UnexpectedResultException executeByte(VirtualFrame, T, …): Executes the block node element and expects a byte value. Throws: UnexpectedResultException executeShort(VirtualFrame, T, …): Executes the block node element and expects a short value. Throws: UnexpectedResultException executeChar(Virtual - [◇ BytecodeOSRNode (interface in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/BytecodeOSRNode.md): Interface for Truffle bytecode nodes which can be on-stack replaced (OSR). executeOSR(VirtualFrame, int, Object): Entrypoint to invoke this node through OSR. Returns: the result of execution. executeOSR(VirtualFrame, long, Object): Overload of executeOSR(VirtualFrame, int, Object) with a long target. getOSRMetadata(): Gets the OSR metadata for this instance. Returns: the OSR metadata. setOSRMetadata(Object): Sets the OSR metadata for this instance. copyIntoOSRFrame(VirtualFrame, VirtualFrame, …): Copies the contents of the parentFrame into the osrFrame used to execute OSR. copyIntoOSRFrame(VirtualFrame, VirtualFrame, …): Overload of copyIntoOSRFrame(VirtualFrame, Vir - [⚡︎ ControlFlowException (exception in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/ControlFlowException.md): An exception thrown to model control flow in a Truffle interpreter. ControlFlowException(): Creates an exception thrown to model control flow. fillInStackTrace(): For performance reasons, this exception does not record any stack trace information. - [@ DenyReplace (annotation interface in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/DenyReplace.md): If a Node subtype is annotated with this annotation then replacement is denied. - [◆ DirectCallNode (abstract class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/DirectCallNode.md): Represents a direct call to a CallTarget. call(Object...): Calls the inner CallTarget returned by getCurrentCallTarget(). Returns: the return result of the call call(int, Object\[\]): Calls the inner CallTarget returned by getCurrentCallTarget() with an explicit bytecode index. Returns: the return result of the call call(Class, int, Object\[\]): Calls the current root node with an explicit root type, bytecode index, and arguments. Returns: the return result of the call getCallTarget(): Returns the originally supplied CallTarget when this call node was created. Returns: the CallTarget provided. isInlinable(): Returns true if the underlying - [◆ EncapsulatingNodeReference (class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/EncapsulatingNodeReference.md): Thread local reference class to remember the current encapsulating node of an interpreter on the stack. set(Node): Sets the current encapsulating node for the current thread and returns its previous value. get(): Returns the current encapsulating node for the current thread. getCurrent(): Returns the encapsulating node reference of the current thread. - [◆ ExecutableNode (abstract class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/ExecutableNode.md): Represents an executable node in a Truffle AST. ExecutableNode(TruffleLanguage): Creates new executable node with a given language instance. execute(VirtualFrame): Execute this fragment at the place where it was parsed. Returns: the result of the execution, must be an interop type (i.e. either implementing TruffleObject or be a primitive value), or null. getLanguageInfo(): Returns public information about the language. getLanguage(Class): Returns the language instance associated with this executable node. - [◆ ExecutionSignature (class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/ExecutionSignature.md): Represents an execution signature of a RootNode. GENERIC: Returns a generic return profile where return and argument types are unknown. getArgumentTypes(): Returns the argument types of the execution signature. getReturnType(): Returns the return type of the execution signature. create(Class, Class\[\]): Creates a new execution signature of a RootNode. - [@ ExplodeLoop (annotation interface in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/ExplodeLoop.md): Specifies that loops originating from within this method should be fully unrolled. kind(): The loop explosion kind. - [≡ ExplodeLoop.LoopExplosionKind (enum class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/ExplodeLoop.LoopExplosionKind.md): Controls the behavior of the ExplodeLoop annotation. FULL_UNROLL: Fully unroll all loops. FULL_UNROLL_UNTIL_RETURN: Like FULL_UNROLL, but in addition loop unrolling duplicates loop exits in every iteration instead of merging them. FULL_EXPLODE: Fully explode all loops. FULL_EXPLODE_UNTIL_RETURN: Like FULL_EXPLODE, but in addition explosion does not stop at loop exits. MERGE_EXPLODE: like FULL_EXPLODE, but copies of the loop body that have the exact same state (all local variables have the same value) are merged. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [◆ IndirectCallNode (abstract class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/IndirectCallNode.md): Represents an indirect call to a CallTarget. IndirectCallNode(): Constructor for implementation subclasses. call(CallTarget, Object...): Performs an indirect call to the given CallTarget target with the provided arguments. Returns: the return value of the call call(CallTarget, int, Object\[\]): Performs an indirect call to the given CallTarget target with an explicit bytecode index and the provided arguments. Returns: the return value of the call call(RootNode, int, Object\[\]): Calls the given root node with an explicit bytecode index and arguments. Returns: the return value of the call Throws: NullPointerException - if root is null Throws: - [⚡︎ InvalidAssumptionException (exception in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/InvalidAssumptionException.md): An exception that should be thrown if an assumption is checked and the check fails. InvalidAssumptionException(): Default constructor. - [◆ LanguageInfo (class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/LanguageInfo.md): Represents public information about a language. getId(): Returns the unique id of the language. getName(): Returns the unique name of the language. getVersion(): Returns the version of the language. getDefaultMimeType(): Returns the default MIME type of a language or null if no default mime-type is set. getMimeTypes(): Returns the MIME types supported by this language. isInternal(): Returns: true if the language is internal, false otherwise isInteractive(): Returns: true if the language is interactive, false otherwise - [◆ LoopNode (abstract class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/LoopNode.md): A loop node calls repeating nodes as long as it returns true. LoopNode(): Constructor for subclasses. execute(VirtualFrame): Invokes one loop invocation by repeatedly calling execute) on the repeating node the loop was initialized with. Returns: a value v returned by execute satisfying shouldContinue(v) == false, which c getRepeatingNode(): Returns the repeating node the loop node was created with. reportLoopCount(Node, int): Reports the execution count of a loop for which no LoopNode was used. - [◆ Node (abstract class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/Node.md): Abstract base class for all nodes in the Truffle Abstract Syntax Tree (AST). getCost(): Deprecated. in 24.1 without replacement Returns a rough estimate for the cost of this Node. getSourceSection(): Retrieves the segment of guest language source code that is represented by this Node. Returns: the source code represented by this Node getEncapsulatingSourceSection(): Retrieves the segment of guest language source code that is represented by this Node, if present; otherwise retrieves the segment represented by the nearest AST ancestor that has this inf isAdoptable(): Returns true if this node can be adopted by a parent. insert(T\[\]): Inserts new node children into an AST - [@ Node.Child (annotation interface in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/Node.Child.md): Marks fields that represent child nodes of this node. - [@ Node.Children (annotation interface in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/Node.Children.md): Marks array fields that are children of this node. - [◆ NodeClass (abstract class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/NodeClass.md): Information about a Node class. isReplaceAllowed(): Returns true if DenyReplace was not set for this node. getType(): The Class this NodeClass has been created for. Returns: the clazz of node this NodeClass describes - [◆ NodeCloneable (abstract class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/NodeCloneable.md): Declarative base class for node fields that are to be cloned together with the containing node. NodeCloneable(): Constructor for subclasses. - [≡ NodeCost (enum class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/NodeCost.md): Represents a rough estimate for the cost of a Node. NONE: This node has literally no costs and should be ignored for heuristics. UNINITIALIZED: This node has a CompilerDirectives.transferToInterpreter() or CompilerDirectives.transferToInterpreterAndInvalidate() as its first unconditional statement. MONOMORPHIC: This node represents a specialized monomorphic version of an operation. POLYMORPHIC: This node represents a polymorphic version of an operation. MEGAMORPHIC: This node represents a megamorphic version of an operation. fromCount(int): Finds the node cost for an associated node count. values(): Returns the enum constants in declaration ord - [@ NodeInfo (annotation interface in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/NodeInfo.md): Annotation for providing additional information on nodes. shortName(): Short name representing the node that can be used for debugging. Returns: the short name cost(): Deprecated. in 24.1 without replacement Provides a rough estimate for the cost of the annotated Node. description(): A human readable explanation of the purpose of the annotated Node. Returns: the description language(): A description, providing a user-readable explanation of the source language of the annotated Node. Returns: the description - [◇ NodeInterface (interface in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/NodeInterface.md): Common base interface for all Truffle nodes. - [◆ NodeUtil (class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/NodeUtil.md): Utility class that manages the special access methods for node instances. assertAdopted(Node): Asserts that a node is adopted by a RootNode and prints a formatted error message with the error path if it is not adopted. findChildFieldName(Node, Node): Finds the field in a parent node and returns its name. collectFieldNames(Class): Finds and retrieves all field names of a node class. collectNodeChildren(Node): Finds and retrieves all Child and Children annotated field names and values. collectNodeProperties(Node): Finds and retrieves all properties of a node. isReplacementSafe(Node, Node, Node): Determines whether a proposed child replacement would be safe: structural - [◇ NodeUtil.NodeCountFilter (interface in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/NodeUtil.NodeCountFilter.md) - [◇ NodeVisitor (interface in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/NodeVisitor.md): Visitor for trees of nodes. visit(Node): This visitor method is called for every node in the tree. Returns: true if the visitation should continue, false otherwise - [◇ RepeatingNode (interface in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/RepeatingNode.md): A node that is repeatedly invoked as part of a Truffle loop control structure. CONTINUE_LOOP_STATUS: A value indicating that the loop should be repeated. BREAK_LOOP_STATUS: A value indicating that the loop should not be repeated. executeRepeating(VirtualFrame): Repeatedly invoked by a loop node implementation until the method returns false or throws an exception. Returns: true if the method should be executed again to complete the loop and false executeRepeatingWithValue(VirtualFrame): Repeatedly invoked by a loop node implementation, but allows returning a language-specific loop exit status. Returns: a value v satisfying shouldContinue(v) == true if the method initial - [◆ RootNode (abstract class in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/RootNode.md): Represents the root node in a Truffle AST. RootNode(TruffleLanguage): Creates new root node with a given language instance. RootNode(TruffleLanguage, FrameDescriptor): Creates new root node given an language environment and frame descriptor. copy(): Creates a shallow copy of this node. Returns: the new copy getQualifiedName(): Returns a qualified name of the AST that in the best case uniquely identifiers the method. getName(): Returns a simple name of the AST (expected to be a method or procedure name in most languages) that identifies the AST for the benefit of guest language programmers using tools; it might appear, for example in is - [⚡︎ SlowPathException (exception in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/SlowPathException.md): An exception thrown to enter a slow path. SlowPathException(): Creates an exception thrown to enter a slow path. SlowPathException(String, Throwable): Creates an exception thrown to enter a slow path. SlowPathException(String): Creates an exception thrown to enter a slow path. SlowPathException(Throwable): Creates an exception thrown to enter a slow path. fillInStackTrace(): Deprecated. the method will become final in future releases. For performance reasons, this exception does not record any stack trace information. - [◇ UnadoptableNode (interface in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/UnadoptableNode.md): Marks a node unadoptable, this means that the parent pointer will never be written by the Truffle framework. - [⚡︎ UnexpectedResultException (exception in com.oracle.truffle.api.nodes)](com/oracle/truffle/api/nodes/UnexpectedResultException.md): An exception that should be thrown if the return value cannot be represented as a value of the return type. UnexpectedResultException(Object): Creates the exception with the alternative result that cannot be represented as a value of the return type. getResult(): Returns: the unexpected result - [▣ Package com.oracle.truffle.api.object](com/oracle/truffle/api/object/index.md): Dynamic object storage model. - [◇ DoubleLocation (interface in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DoubleLocation.md): Double-typed storage location. getDouble(DynamicObject, boolean): Deprecated. setDouble(DynamicObject, double, Shape): Deprecated. Throws: FinalLocationException - [◆ DynamicObject (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.md): Represents a dynamic object, members of which can be dynamically added and removed at run time. DynamicObject(Shape): Constructor for DynamicObject subclasses. Throws: IllegalArgumentException - if called with an illegal (incompatible) shape getShape(): Get the object's current shape. clone(): The clone() method is not supported by DynamicObject at this point in time, so it always throws CloneNotSupportedException, even if the Cloneable interface is implemented in a subclass. Throws: CloneNotSupported - [◆ DynamicObject.ContainsKeyNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.ContainsKeyNode.md): Checks if this object contains a property with the given key. execute(DynamicObject, Object): Returns true if this object contains a property with the given key. Returns: true if the object contains a property with this key, else false - [◆ DynamicObject.CopyPropertiesNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.CopyPropertiesNode.md): Copies all properties of a DynamicObject to another, preserving property flags. execute(DynamicObject, DynamicObject): Copies all properties of a DynamicObject to another, preserving property flags. - [@ DynamicObject.DynamicField (annotation interface in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.DynamicField.md): Using this annotation, subclasses can define additional dynamic fields to be used by the object layout. - [◆ DynamicObject.GetDynamicTypeNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.GetDynamicTypeNode.md): Gets the language-specific dynamic type identifier currently associated with this object. execute(DynamicObject): Gets the dynamic type identifier currently associated with this object. Returns: the object type - [◆ DynamicObject.GetKeyArrayNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.GetKeyArrayNode.md): Gets a snapshot of the object's property keys, in insertion order. execute(DynamicObject): Gets a snapshot of the object's property keys, in insertion order. Returns: a read-only array of the object's property keys. Do not modify. - [◆ DynamicObject.GetNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.GetNode.md): Gets the value of a property or returns a default value if no such property exists. execute(DynamicObject, Object, Object): Gets the value of an existing property or returns the provided default value if no such property exists. Returns: the property's value if it exists, else defaultValue. executeInt(DynamicObject, Object, Object): Gets the value of an existing property or returns the provided default value if no such property exists. Returns: the property's value if it exists, else defaultValue. Throws: U executeLong(DynamicObject, Object, Object): Gets the value of an existing property or returns the provided default value if no such property exists. Returns: the property' - [◆ DynamicObject.GetPropertyArrayNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.GetPropertyArrayNode.md): Gets a snapshot of the object's properties, in insertion order. execute(DynamicObject): Gets an array snapshot of the object's properties, in insertion order. Returns: a read-only array of the object's properties. Do not modify. - [◆ DynamicObject.GetPropertyFlagsNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.GetPropertyFlagsNode.md): Gets the property flags associated with the requested property key. execute(DynamicObject, Object, int): Gets the property flags associated with the requested property key. Returns: the property flags if the property exists, else defaultValue - [◆ DynamicObject.GetPropertyNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.GetPropertyNode.md): Gets a property descriptor for the requested property key or null if no such property exists. execute(DynamicObject, Object): Gets a property descriptor for the requested property key. Returns: Property if the property exists, else null - [◆ DynamicObject.GetShapeFlagsNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.GetShapeFlagsNode.md): Gets the language-specific object shape flags. execute(DynamicObject): Gets the language-specific object shape flags previously set using SetShapeFlagsNode or Shape.Builder.shapeFlags(int). Returns: shape flags - [◆ DynamicObject.IsSharedNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.IsSharedNode.md): Checks whether this object is marked as shared. execute(DynamicObject): Checks whether this object is marked as shared. Returns: true if the object is shared - [◆ DynamicObject.MarkSharedNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.MarkSharedNode.md): Marks this object as shared. execute(DynamicObject): Marks this object as shared. Throws: UnsupportedOperationException - if the object is already shared. - [◆ DynamicObject.PutAllNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.PutAllNode.md): Adds or sets multiple properties in bulk. execute(DynamicObject, Object\[\], Object\[\]): Adds multiple properties or sets the values of multiple existing properties at once. executeIfPresent(DynamicObject, Object\[\], Object\[\]): Like execute(DynamicObject, Object\[\], Object\[\]) but only sets properties that are already present. executeIfAbsent(DynamicObject, Object\[\], Object\[\]): Like execute(DynamicObject, Object\[\], Object\[\]) but only adds properties that are absent. executeWithFlags(DynamicObject, Object\[\], …): Like execute(DynamicObject, Object\[\], Object\[\]) but additionally sets property flags. executeWithFlagsIfPresent(DynamicObject, Obje - [◆ DynamicObject.PutConstantNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.PutConstantNode.md): Sets the value of an existing property or adds a new property if no such property exists. execute(DynamicObject, Object, Object): Same as executeWithFlags, except the property is added with 0 flags, and if the property already exists, its flags will not be updated. executeIfPresent(DynamicObject, Object, Object): Like execute(DynamicObject, Object, Object) but only if the property is present. executeIfAbsent(DynamicObject, Object, Object): Like execute(DynamicObject, Object, Object) but only if the property is absent. executeWithFlags(DynamicObject, Object, …): Adds a property with a constant value or replaces an existing one. executeWithFlagsIfPresent(DynamicObject, Object, …): Li - [◆ DynamicObject.PutNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.PutNode.md): Sets the value of an existing property or adds a new property if no such property exists. execute(DynamicObject, Object, Object): Sets the value of an existing property or adds a new property if no such property exists. executeIfPresent(DynamicObject, Object, Object): Sets the value of the property if present, otherwise returns false. Returns: true if the property was present and the value set, otherwise false executeIfAbsent(DynamicObject, Object, Object): Sets the value of the property if absent, otherwise returns false. Returns: true if the property was absent and the value set, otherwise false executeWithFlags(DynamicObject, Object, …): Like execute(DynamicObject, Object, Objec - [◆ DynamicObject.RemoveKeyNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.RemoveKeyNode.md): Removes the property with the given key from the object. execute(DynamicObject, Object): Removes the property with the given key from the object. Returns: true if the property was removed or false if property was not found - [◆ DynamicObject.ResetShapeNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.ResetShapeNode.md): Empties and resets the object to the given root shape. execute(DynamicObject, Shape): Empties and resets the object to the given root shape, which must not contain any instance properties (but may contain properties with a constant value). Returns: true if the object's shape - [◆ DynamicObject.SetAllPropertyFlagsNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.SetAllPropertyFlagsNode.md): Sets or updates the flags of multiple existing properties. execute(DynamicObject, Object\[\], int): Sets the flags of every supplied, existing key to flags. execute(DynamicObject, Object\[\], int\[\]): Sets each supplied, existing key's flags to the corresponding array element. Throws: IllegalArgumentException - if the keys and flags array lengths differ executeAdd(DynamicObject, Object\[\], int): Adds the given flags to each supplied, existing property. executeRemove(DynamicObject, Object\[\], int): Removes the given flags from each supplied, existing property. executeRemoveAndAdd(DynamicObject, Object\[\], …): Removes, then adds flags to each supplied, existing - [◆ DynamicObject.SetDynamicTypeNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.SetDynamicTypeNode.md): Sets the language-specific dynamic type identifier. execute(DynamicObject, Object): Sets the object's dynamic type identifier. Returns: true if the type (and the object's shape) changed - [◆ DynamicObject.SetPropertyFlagsNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.SetPropertyFlagsNode.md): Sets or updates property flags associated with the requested property key. execute(DynamicObject, Object, int): Sets the property flags associated with the requested property. Returns: true if the property was found and its flags were changed, else false executeAdd(DynamicObject, Object, int): Adds property flags associated with the requested property. executeRemove(DynamicObject, Object, int): Removes (clears) property flags associated with the requested property. executeRemoveAndAdd(DynamicObject, Object, …): Removes, then adds property flags associated with the requested property. - [◆ DynamicObject.SetShapeFlagsNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.SetShapeFlagsNode.md): Sets or updates language-specific object shape flags. execute(DynamicObject, int): Sets language-specific object shape flags, changing the object's shape if need be. Returns: true if the object's shape changed, false if no change was made. Throws: IllegalArgumentException - executeAdd(DynamicObject, int): Adds language-specific object shape flags, changing the object's shape if need be. executeRemove(DynamicObject, int): Removes language-specific object shape flags, changing the object's shape if need be. executeRemoveAndAdd(DynamicObject, int, int): Removes, then adds language-specific object shape flags, changing the object's shape if need be. - [◆ DynamicObject.UpdateShapeNode (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObject.UpdateShapeNode.md): Ensures the object's shape is up-to-date. execute(DynamicObject): Ensures the object's shape is up-to-date. Returns: true if the object's shape was changed, otherwise false. - [◆ DynamicObjectFactory (class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObjectFactory.md) - [◆ DynamicObjectLibrary (abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/DynamicObjectLibrary.md): DynamicObject access library. getFactory(): Returns the library factory for DynamicObjectLibrary. getUncached(): Gets the shared DynamicObjectLibrary instance for uncached accesses. Returns: an uncached automatically dispatched version of the library getShape(DynamicObject): Gets the shape of the object. Returns: the object's current Shape getOrDefault(DynamicObject, Object, Object): Gets the value of an existing property or returns the provided default value if no such property exists. Returns: the property's value if it exists, else defaultValue. getIntOrDefault(DynamicObject, Object, Object): Gets the value of an existi - [⚡︎ FinalLocationException (exception in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/FinalLocationException.md): This exception is thrown on an attempt to assign a value to a final location. - [◆ HiddenKey (class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/HiddenKey.md): A unique key to be used for private object fields; excluded from enumeration and compared by object identity. - [⚡︎ IncompatibleLocationException (exception in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/IncompatibleLocationException.md): This exception is thrown on an attempt to assign an incompatible value to a location. - [◇ IntLocation (interface in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/IntLocation.md): Int-typed storage location. getInt(DynamicObject, boolean): Deprecated. setInt(DynamicObject, int, Shape): Deprecated. Throws: FinalLocationException - [◆ Location (sealed abstract class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/Location.md): Property location. get(DynamicObject, Shape): Deprecated. Get object value as object at this location in store. get(DynamicObject, boolean): Deprecated. Get object value as object at this location in store. get(DynamicObject): Deprecated. Get object value as object at this location in store. getInt(DynamicObject, boolean): Gets this location's value as int. Throws: UnexpectedResultException - if the location does not contain an int value. getLong(DynamicObject, boolean): Gets this location's value as long. Throws: UnexpectedResultException - if the location does not contain a long value. getDouble(DynamicObject, - [◆ Property (class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/Property.md): Property objects represent the mapping between property identifiers (keys) and storage locations. getKey(): Get property identifier. getFlags(): Get property flags, which are free for language-specific use. getLocation(): Get the property location. isHidden(): Is this property hidden from iteration. - [◆ PropertyGetter (class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/PropertyGetter.md): A lightweight property getter that allows getting the value of a DynamicObject property without any lookup or cache dispatch. accepts(DynamicObject): Returns true if this PropertyGetter can be used with the given receiver object to get the property's value. Returns: true if the shape of the receiver object is supported by this PropertyGetter. get(DynamicObject): Gets the property's value from the given receiver object if the object has the supported Shape, i.e. Returns: the property's value Throws: IllegalArgumentException - if the object does not have the ex getInt(DynamicObject): Gets the property's value from the given receiver object if the object has the supported Shape. Returns: the property's value Throws: Ill - [◆ Shape (class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/Shape.md): A Shape is an immutable descriptor of the current object "shape" of a DynamicObject, i.e., object layout, metadata (type, flags), and a mapping of properties to storage locations. newBuilder(): Creates a new initial shape builder. newBuilder(Shape): Creates a new derived shape builder that allows changing a root shape's flags and dynamic type and adding constant properties. getProperty(Object): Get a property entry by key. Returns: a Property object, or null if not found addProperty(Property): Add a new property in the map, yielding a new or cached Shape object. Returns: the new Shape defineProperty(Object, Object, …): Add or change property in the map, yielding a new or cached Shape object. Returns: the shape after defining the property getProperties(): An Iterable ove - [◆ Shape.Builder (class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/Shape.Builder.md): Builder class to construct initial Shape instances. layout(Class): Deprecated. Use layout(Class, MethodHandles.Lookup) instead. Sets custom object layout class (default: DynamicObject base class). layout(Class, MethodHandles.Lookup): Sets a custom object layout class (default: DynamicObject.class) and a corresponding MethodHandles.Lookup created by the layout class, or a class in the same module, that has full pri dynamicType(Object): Sets initial dynamic object type identifier. Throws: NullPointerException - if the type is null shapeFlags(int): Sets initial shape flags (default: 0). Throws: IllegalArgumentException - if the flags value is not - [◆ Shape.DerivedBuilder (class in com.oracle.truffle.api.object)](com/oracle/truffle/api/object/Shape.DerivedBuilder.md): Builder class to construct derived Shape instances. dynamicType(Object): Sets initial dynamic object type identifier. Throws: NullPointerException - if the type is null shapeFlags(int): Sets initial shape flags (default: 0). Throws: IllegalArgumentException - if the flags value is not in the supported range addConstantProperty(Object, Object, int): Adds a property with a constant value to the shape. Throws: NullPointerException - if the key is null Throws: IllegalArgumentException - if a property with the key already exists build(): Builds a derived shape from the base shape supplied to the constructor using the configuration of this builder. R - [▣ Package com.oracle.truffle.api.profiles](com/oracle/truffle/api/profiles/index.md): A profile is a Truffle utility class that uses the Truffle compiler directives to guard for and/or forward runtime information to the compiler. - [◆ BranchProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/BranchProfile.md): BranchProfiles are profiles to speculate on branches that are unlikely to be visited. enter(): Call when an unlikely branch is entered. disable(): Disables this profile by setting it to its generic state. reset(): Resets this profile to its uninitialized state. create(): Call to create a new instance of a branch profile. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. getUncached(): Returns the uncached version of the profile. - [◆ ByteValueProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/ByteValueProfile.md): Specialized value profile to capture certain properties of byte runtime values. disable(): Disables this profile by setting it to its generic state. reset(): Resets this profile to its uninitialized state. createIdentityProfile(): Returns a value profile that profiles the exact value of a byte. create(): Returns a value profile that profiles the exact value of a byte. getUncached(): Returns the uncached version of the profile. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. - [◆ ConditionProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/ConditionProfile.md): ConditionProfiles are useful to profile the outcome of conditions. disable(): Disables this profile by setting it to its generic state. reset(): Resets this profile to its uninitialized state. create(): Returns a ConditionProfile that speculates on conditions to be never true or to be never false. getUncached(): Returns the uncached version of the profile. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. - [◆ CountingConditionProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/CountingConditionProfile.md): CountingConditionProfiles are useful to profile the outcome of conditions. disable(): Disables this profile by setting it to its generic state. reset(): Resets this profile to its uninitialized state. getUncached(): Returns the uncached version of the profile. create(): Returns a ConditionProfile that speculates on conditions to be never true or to be never false. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. - [◆ DoubleValueProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/DoubleValueProfile.md): Specialized value profile to capture certain properties of double runtime values. disable(): Disables this profile by setting it to its generic state. reset(): Resets this profile to its uninitialized state. createRawIdentityProfile(): Returns a value profile that profiles the exact value of a double using Double.doubleToRawLongBits(double). create(): Returns a value profile that profiles the exact value of a double using Double.doubleToRawLongBits(double). getUncached(): Returns the uncached version of the profile. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. - [◆ FloatValueProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/FloatValueProfile.md): Specialized value profile to capture certain properties of float runtime values. disable(): Disables this profile by setting it to its generic state. reset(): Resets this profile to its uninitialized state. createRawIdentityProfile(): Returns a value profile that profiles the exact value of a float using Float.floatToRawIntBits(float). create(): Returns a value profile that profiles the exact value of a float using Float.floatToRawIntBits(float). getUncached(): Returns the uncached version of the profile. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. - [◆ InlinedBranchProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/InlinedBranchProfile.md): BranchProfiles are profiles to speculate on branches that are unlikely to be visited. wasEntered(Node): Returns true if the enter(Node) method was ever called, otherwise false. reset(Node): Resets this profile to its uninitialized state. disable(Node): Disables this profile by setting it to its generic state. toString(Node): Prints a string representation of this inlined profile given a target node. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. getUncached(): Returns the uncached version of the profile. - [◆ InlinedByteValueProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/InlinedByteValueProfile.md): Specialized value profile to capture certain properties of byte runtime values. toString(Node): Prints a string representation of this inlined profile given a target node. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. getUncached(): Returns the uncached version of the profile. - [◆ InlinedConditionProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/InlinedConditionProfile.md): ConditionProfiles are useful to profile the outcome of conditions. wasTrue(Node): Returns true if the profile(Node, boolean) method ever received a true value, otherwise false. wasFalse(Node): Returns true if the profile(Node, boolean) method ever received a false value, otherwise false. disable(Node): Disables this profile by setting it to its generic state. reset(Node): Resets this profile to its uninitialized state. toString(Node): Prints a string representation of this inlined profile given a target node. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. getUncached(): Returns the uncached version of the profile. - [◆ InlinedCountingConditionProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/InlinedCountingConditionProfile.md): CountingConditionProfiles are useful to profile the outcome of conditions. wasTrue(Node): Returns true if the profile(Node, boolean) method ever received a true value, otherwise false. wasFalse(Node): Returns true if the profile(Node, boolean) method ever received a false value, otherwise false. disable(Node): Disables this profile by setting it to its generic state. reset(Node): Resets this profile to its uninitialized state. toString(Node): Prints a string representation of this inlined profile given a target node. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. getUncached(): Returns the uncached version of the profile. - [◆ InlinedDoubleValueProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/InlinedDoubleValueProfile.md): Specialized value profile to capture certain properties of byte runtime values. toString(Node): Prints a string representation of this inlined profile given a target node. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. getUncached(): Returns the uncached version of the profile. - [◆ InlinedExactClassProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/InlinedExactClassProfile.md): Specialized value profile to capture the exact class of reference runtime values. toString(Node): Prints a string representation of this inlined profile given a target node. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. getUncached(): Returns the uncached version of the profile. - [◆ InlinedFloatValueProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/InlinedFloatValueProfile.md): Specialized value profile to capture certain properties of float runtime values. toString(Node): Prints a string representation of this inlined profile given a target node. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. getUncached(): Returns the uncached version of the profile. - [◆ InlinedIntValueProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/InlinedIntValueProfile.md): Specialized value profile to capture certain properties of int runtime values. toString(Node): Prints a string representation of this inlined profile given a target node. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. getUncached(): Returns the uncached version of the profile. - [◆ InlinedLongValueProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/InlinedLongValueProfile.md): Specialized value profile to capture certain properties of long runtime values. toString(Node): Prints a string representation of this inlined profile given a target node. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. getUncached(): Returns the uncached version of the profile. - [◆ InlinedLoopConditionProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/InlinedLoopConditionProfile.md): InlinedLoopConditionProfiles are designed to profile the outcome of loop conditions. profileCounted(Node, long): Provides an alternative way to profile counted loops with less interpreter footprint. inject(Node, boolean): Provides an alternative way to profile counted loops with less interpreter footprint. wasTrue(Node): Returns true if the profile(Node, boolean) method ever received a true value, otherwise false. wasFalse(Node): Returns true if the profile(Node, boolean) method ever received a false value, otherwise false. disable(Node): Disables this profile by setting it to its generic state. reset(Node): Resets this profile to its uninitialized state. toString(Node): Print - [◆ InlinedProfile (abstract class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/InlinedProfile.md): A profile is a Truffle utility class that uses the Truffle compiler directives to guard for and/or forward runtime information to the compiler. disable(Node): Disables this profile by setting it to its generic state. reset(Node): Resets this profile to its uninitialized state. toString(Node): Prints a string representation of this inlined profile given a target node. - [◆ IntValueProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/IntValueProfile.md): Specialized value profile to capture certain properties of int runtime values. disable(): Disables this profile by setting it to its generic state. reset(): Resets this profile to its uninitialized state. createIdentityProfile(): Returns a value profile that profiles the exact value of an int. create(): Returns a value profile that profiles the exact value of an int. getUncached(): Returns the uncached version of the profile. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. - [◆ LongValueProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/LongValueProfile.md): Specialized value profile to capture certain properties of long runtime values. disable(): Disables this profile by setting it to its generic state. reset(): Resets this profile to its uninitialized state. createIdentityProfile(): Returns a value profile that profiles the exact value of an long. create(): Returns a value profile that profiles the exact value of an long. getUncached(): Returns the uncached version of the profile. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. - [◆ LoopConditionProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/LoopConditionProfile.md): LoopConditionProfiles are designed to profile the outcome of loop conditions. profileCounted(long): Provides an alternative way to profile counted loops with less interpreter footprint. inject(boolean): Provides an alternative way to profile counted loops with less interpreter footprint. disable(): Disables this profile by setting it to its generic state. reset(): Resets this profile to its uninitialized state. create(): Returns a LoopConditionProfile that speculates on loop conditions to be never true. getUncached(): Returns the uncached version of the profile. - [◆ PrimitiveValueProfile (class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/PrimitiveValueProfile.md): Represents a ValueProfile that speculates on the primitive equality or object identity of values. disable(): Disables this profile by setting it to its generic state. reset(): Resets this profile to its uninitialized state. createEqualityProfile(): Returns a PrimitiveValueProfile that speculates on the primitive equality or object identity of a value. create(): Returns a PrimitiveValueProfile that speculates on the primitive equality or object identity of a value. getUncached(): Returns the uncached version of the profile. - [◆ Profile (abstract class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/Profile.md): A profile is a Truffle utility class that uses the Truffle compiler directives to guard for and/or forward runtime information to the compiler. disable(): Disables this profile by setting it to its generic state. reset(): Resets this profile to its uninitialized state. - [◆ ValueProfile (abstract class in com.oracle.truffle.api.profiles)](com/oracle/truffle/api/profiles/ValueProfile.md): Specialized value profile to capture certain properties of Object runtime values. createClassProfile(): Returns a value profile that profiles the exact class of a value. create(): Returns a value profile that profiles the exact class of a value. createIdentityProfile(): Returns a value profile that profiles the object identity of a value. getUncached(): Returns the uncached version of the profile. inline(InlineSupport.InlineTarget): Returns an inlined version of the profile. - [▣ Package com.oracle.truffle.api.provider](com/oracle/truffle/api/provider/index.md): This package contains a provider to instantiate a Truffle language. - [◆ InternalResourceProvider (abstract class in com.oracle.truffle.api.provider)](com/oracle/truffle/api/provider/InternalResourceProvider.md): Used to register an optional InternalResource using a ServiceLoader. getComponentId(): Provides the identifier of the language or instrument to which the resource belongs. getResourceId(): An internal resource identifier. createInternalResource(): Creates an InternalResource instance. - [◆ TruffleLanguageProvider (abstract class in com.oracle.truffle.api.provider)](com/oracle/truffle/api/provider/TruffleLanguageProvider.md): Used to register a TruffleLanguage using a ServiceLoader. TruffleLanguageProvider(): Constructor to be called by subclasses. getLanguageClassName(): Returns the name of a class implementing the TruffleLanguage. create(): Creates a new instance of a TruffleLanguage. getServicesClassNames(): Returns the class names of provided services. createFileTypeDetectors(): Creates file type detectors used by the TruffleLanguage. getInternalResourceIds(): Returns ids of provided internal resources. createInternalResource(String): Creates a language InternalResource identified by the resourceId. Throws: IllegalArgumentException - if resourceId is not supported by - [▣ Package com.oracle.truffle.api.source](com/oracle/truffle/api/source/index.md): Represents a source file. - [◆ Source (abstract class in com.oracle.truffle.api.source)](com/oracle/truffle/api/source/Source.md): Representation of a source code unit and its contents that can be evaluated in a language. CONTENT_NONE: Constant to be used as an argument to SourceBuilder.content(CharSequence) to set no content to the Source built. getLanguage(): Returns the language this source was created with. Returns: the language of this source. getName(): Returns the name of this resource holding a guest language program. Returns: the name of the guest language program getPath(): The fully qualified name of the source. isInternal(): Check whether this source has been marked as internal, meaning that it has been provided by the infrastructure, language implementation, or system library. Returns: whether this - [◆ Source.LiteralBuilder (class in com.oracle.truffle.api.source)](com/oracle/truffle/api/source/Source.LiteralBuilder.md): Allows one to specify additional attribute before creating new Source instance. content(CharSequence): Specifies character based content of to-be-built Source. Returns: instance of this builder - which's build() method no longer throws an IOException content(ByteSequence): Specifies byte based content of to-be-built Source. Returns: instance of this builder - which's build() method no longer throws an IOException name(String): Specifies a name to the to-be-built Source. Returns: instance of this builder mimeType(String): Explicitly assigns a MIME type to the to-be-built Source. Returns: instance of this builder ready to create new source cached(boolean): Enables or disabl - [◆ Source.SourceBuilder (class in com.oracle.truffle.api.source)](com/oracle/truffle/api/source/Source.SourceBuilder.md): Allows one to specify additional attribute before creating new Source instance. name(String): Specifies a name to the to-be-built Source. Returns: instance of this builder content(CharSequence): Specifies character based content of to-be-built Source. Returns: instance of this builder - which's build() method no longer throws an IOException content(ByteSequence): Specifies byte based content of to-be-built Source. Returns: instance of this builder - which's build() method no longer throws an IOException mimeType(String): Explicitly assigns a MIME type to the to-be-built Source. Returns: instance of this builder ready to create new source cached(boolean): Enables or disabl - [◆ SourceSection (abstract class in com.oracle.truffle.api.source)](com/oracle/truffle/api/source/SourceSection.md): Description of contiguous section of text within a Source of program code.; supports multiple modes of access to the text and its location. isAvailable(): Returns whether this is a special instance that signifies that source information is available. hasLines(): Returns true if this section has a line number information, false otherwise. hasColumns(): Returns true if this section has a column number information, false otherwise. hasCharIndex(): Returns true if this section has a character index information, false otherwise. getSource(): Representation of the source program that contains this section. Returns: the source object getStartLine(): Returns 1-based line number of the first character in this section (inclusive). Returns: - [▣ Package com.oracle.truffle.api.staticobject](com/oracle/truffle/api/staticobject/index.md): Static Object Model APIs to represent the layout of objects that, once defined, do not change the number and the type of their properties. - [◇ DefaultStaticObjectFactory (interface in com.oracle.truffle.api.staticobject)](com/oracle/truffle/api/staticobject/DefaultStaticObjectFactory.md): A trivial static object factory that allocates static objects of type Object. create(): Creates a static object of type Object that have a visible constructor that accepts no arguments. Returns: the new static object instance - [◆ DefaultStaticProperty (class in com.oracle.truffle.api.staticobject)](com/oracle/truffle/api/staticobject/DefaultStaticProperty.md): A trivial default implementation of StaticProperty. DefaultStaticProperty(String): Constructs a new DefaultStaticProperty. getId(): StaticProperty instances must have a String identifier that is unique and constant for that shape. Returns: the static property identifier - [◆ StaticProperty (abstract class in com.oracle.truffle.api.staticobject)](com/oracle/truffle/api/staticobject/StaticProperty.md): StaticProperty objects represent the mapping between property identifiers and storage locations within static objects. StaticProperty(): Constructor for subclasses. getId(): StaticProperty instances must have a String identifier that is unique and constant for that shape. Returns: the static property identifier getObject(Object): Returns the Object value represented by this StaticProperty and stored in the specified static object. Returns: the value of the static property stored in static object obj Throws: IllegalArgumentExcep getObjectVolatile(Object): Returns the Object value represented by this StaticProperty and stored in the specified static object. Returns: the value of the static property stored in sta - [◆ StaticShape (abstract class in com.oracle.truffle.api.staticobject)](com/oracle/truffle/api/staticobject/StaticShape.md): A StaticShape is an immutable descriptor of the layout of a static object and is a good entry point to learn about the Static Object Model. newBuilder(TruffleLanguage): Creates a new static shape builder. Returns: a new static shape builder Throws: NullPointerException - if language is null getFactory(): Returns an instance of the default or the user-defined factory interface that must be used to allocate static objects with the current shape. - [◆ StaticShape.Builder (class in com.oracle.truffle.api.staticobject)](com/oracle/truffle/api/staticobject/StaticShape.Builder.md): Builder class to construct StaticShape instances. property(StaticProperty, Class, boolean): Adds a StaticProperty to the static shape to be constructed. Returns: the Builder instance Throws: IllegalArgumentException - if more than 65535 properties are added, or if the p safetyChecks(boolean): Configures whether StaticProperty accesses to the StaticShape built by this builder perform safety checks. Returns: the Builder instance Throws: IllegalStateException - if this method is invoked af build(): Builds a new static shape using the configuration of this builder. Returns: the new StaticShape Throws: IllegalStateException - if a static property - [▣ Package com.oracle.truffle.api.strings](com/oracle/truffle/api/strings/index.md): Truffle String related APIs. - [◆ AbstractTruffleString (sealed abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/AbstractTruffleString.md): Abstract base class for Truffle strings. isEmpty(): Returns true if this string is empty. byteLength(TruffleString.Encoding): Get this string's length in bytes. isCompatibleToUncached(TruffleString.Encoding): Returns true if this string is compatible to the given encoding. isManaged(): Returns true if this string is not backed by a native pointer. isNative(): Returns true if this string is backed by a native pointer. isImmutable(): Returns true if this string is immutable, i.e. isMutable(): Returns true if this string is mutable, i.e. asTruffleStringUncached(TruffleString.Encoding): Shorthand for calling the uncached version of Truff - [◆ InternalByteArray (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/InternalByteArray.md): Wrapper object containing a TruffleString's internal byte array, along with a byte offset and length defining the region in use. getArray(): Get the internal byte array. getOffset(): Get the string region's starting index. getLength(): Get the string region's length. getEnd(): Get the string region's end (offset + length). get(int): Read the byte at getArray()\[getOffset() + index\] and return it as a byte, similar to TruffleString.ReadByteNode. - [◆ MutableTruffleString (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/MutableTruffleString.md): Represents a mutable variant of a TruffleString. notifyExternalMutation(): Notify this mutable string of an external modification of its internal content. fromByteArrayUncached(byte\[\], int, …): Shorthand for calling the uncached version of FromByteArrayNode. fromNativePointerUncached(Object, int, …): Shorthand for calling the uncached version of FromNativePointerNode. writeByteUncached(int, byte, TruffleString.Encoding): Shorthand for calling the uncached version of WriteByteNode. concatUncached(AbstractTruffleString, TruffleString.Encoding): Shorthand for calling the uncached version of ConcatNode. substringUncached(int, int, TruffleString. - [◆ MutableTruffleString.AsManagedNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/MutableTruffleString.AsManagedNode.md): Node to get the given AbstractTruffleString as a managed MutableTruffleString, meaning that the resulting string's backing memory is not a native pointer. execute(AbstractTruffleString, TruffleString.Encoding): If the given string is already a managed (i.e. create(): Create a new AsManagedNode. getUncached(): Get the uncached version of AsManagedNode. - [◆ MutableTruffleString.AsMutableTruffleStringNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/MutableTruffleString.AsMutableTruffleStringNode.md): Node to get a AbstractTruffleString as a MutableTruffleString. execute(AbstractTruffleString, TruffleString.Encoding): If the given string is already a MutableTruffleString, return it. create(): Create a new AsMutableTruffleStringNode. getUncached(): Get the uncached version of AsMutableTruffleStringNode. - [◆ MutableTruffleString.ConcatNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/MutableTruffleString.ConcatNode.md): Node to create a new MutableTruffleString by concatenating two strings. execute(AbstractTruffleString, AbstractTruffleString, TruffleString.Encoding): Creates a new MutableTruffleString by concatenating two strings. create(): Create a new ConcatNode. getUncached(): Get the uncached version of ConcatNode. - [◆ MutableTruffleString.ForceEncodingNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/MutableTruffleString.ForceEncodingNode.md): Node to forcibly assign any encoding to a string. execute(AbstractTruffleString, TruffleString.Encoding, TruffleString.Encoding): Returns a version of string a assigned to the given encoding. create(): Create a new MutableTruffleString.ForceEncodingNode. getUncached(): Get the uncached version of MutableTruffleString.ForceEncodingNode. - [◆ MutableTruffleString.FromByteArrayNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/MutableTruffleString.FromByteArrayNode.md): Node to create a new MutableTruffleString from a byte array. execute(byte\[\], int, …): Creates a new MutableTruffleString from a byte array. create(): Create a new FromByteArrayNode. getUncached(): Get the uncached version of FromByteArrayNode. - [◆ MutableTruffleString.FromNativePointerNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/MutableTruffleString.FromNativePointerNode.md): Node to create a new MutableTruffleString from an interop object representing a native pointer. execute(Object, int, …): Create a new MutableTruffleString from an interop object representing a native pointer (isPointer(pointerObject) must return true). create(): Create a new FromNativePointerNode. getUncached(): Get the uncached version of FromNativePointerNode. - [◆ MutableTruffleString.SubstringByteIndexNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/MutableTruffleString.SubstringByteIndexNode.md): SubstringNode, but with byte indices. execute(AbstractTruffleString, int, …): SubstringNode, but with byte indices. create(): Create a new SubstringByteIndexNode. getUncached(): Get the uncached version of SubstringByteIndexNode. - [◆ MutableTruffleString.SubstringNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/MutableTruffleString.SubstringNode.md): Node to create a new mutable substring of a string. execute(AbstractTruffleString, int, …): Create a new mutable substring of a, starting from fromIndex, with length length. create(): Create a new SubstringNode. getUncached(): Get the uncached version of SubstringNode. - [◆ MutableTruffleString.SwitchEncodingNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/MutableTruffleString.SwitchEncodingNode.md): Node to get a given string in a specific encoding. execute(AbstractTruffleString, TruffleString.Encoding): Returns a version of string a that is encoded in the given encoding, which may be the string itself or a converted version. execute(AbstractTruffleString, TruffleString.Encoding, TranscodingErrorHandler): Returns a version of string a that is encoded in the given encoding, which may be the string itself or a converted version. create(): Create a new MutableTruffleString.SwitchEncodingNode. getUncached(): Get the uncached version of MutableTruffleString.SwitchEncodingNode. - [◆ MutableTruffleString.WriteByteNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/MutableTruffleString.WriteByteNode.md): Node to write a byte into a mutable string. execute(MutableTruffleString, int, …): Writes a byte into the given mutable string. create(): Create a new WriteByteNode. getUncached(): Get the uncached version of WriteByteNode. - [◆ MutableTruffleStringFactory (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/MutableTruffleStringFactory.md) - [◇ NativeAllocator (interface in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/NativeAllocator.md): An allocation function for native buffers. allocate(int): Allocates a new native buffer of byteSize bytes. - [◇ TranscodingErrorHandler (interface in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TranscodingErrorHandler.md): An error handler for transcoding operations such as TruffleString.SwitchEncodingNode. DEFAULT: The default transcoding error handler. DEFAULT_KEEP_SURROGATES_IN_UTF8: Same as DEFAULT, but also keeps UTF-16 surrogate values in UTF-8. apply(AbstractTruffleString, int, …): Transcoding error handler implementation. Returns: a string to use instead of the invalid region. - [▤ TranscodingErrorHandler.ReplacementString (record in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TranscodingErrorHandler.ReplacementString.md): Result type of apply(AbstractTruffleString, int, int, TruffleString.Encoding, TruffleString.Encoding). replacement: the string to use as replacement for the erroneous region in the source string. byteLength: the byte length of the region to replace. If this value is negative, let the transcoder determine the region length instead. toString(): Returns a string containing the record class name and its component names and values. hashCode(): Returns a hash code computed from the record components. equals(Object): Returns whether the other object is a record of the same class with equal components. replacement(): the string to use as replacement for the erroneous region in the source string. byteLe - [◆ TruffleString (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.md): Represents a primitive String type, which can be reused across languages. fromCodePointUncached(int, TruffleString.Encoding): Shorthand for calling the uncached version of FromCodePointNode. fromCodePointUncached(int, TruffleString.Encoding, boolean): Shorthand for calling the uncached version of FromCodePointNode. fromLongUncached(long, TruffleString.Encoding, boolean): Shorthand for calling the uncached version of FromLongNode. fromByteArrayUncached(byte\[\], TruffleString.Encoding): Shorthand for calling the uncached version of FromByteArrayNode. fromByteArrayUncached(byte\[\], TruffleString.Encoding, boolean): Shorthand for calling the uncached version of FromByteAr - [◆ TruffleString.AsManagedNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.AsManagedNode.md): Node to get the given AbstractTruffleString as a managed TruffleString, meaning that the resulting string's backing memory is not a native pointer. execute(AbstractTruffleString, TruffleString.Encoding): Returns a given string if it is already managed (i.e. execute(AbstractTruffleString, TruffleString.Encoding, boolean): If the given string is already a managed (i.e. create(): Create a new AsManagedNode. getUncached(): Get the uncached version of AsManagedNode. - [◆ TruffleString.AsNativeNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.AsNativeNode.md): Node to convert a potentially managed TruffleString to a native string. execute(TruffleString, NativeAllocator, …): Convert a potentially managed TruffleString to a native string. create(): Create a new AsNativeNode. getUncached(): Get the uncached version of AsNativeNode. - [◆ TruffleString.AsTruffleStringNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.AsTruffleStringNode.md): Node to get the given AbstractTruffleString as a TruffleString. execute(AbstractTruffleString, TruffleString.Encoding): If the given string is already a TruffleString, return it. create(): Create a new AsTruffleStringNode. getUncached(): Get the uncached version of AsTruffleStringNode. - [◆ TruffleString.ByteIndexOfAnyByteNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ByteIndexOfAnyByteNode.md): Node to find the index of the first occurrence of any byte from a given array. execute(AbstractTruffleString, int, …): Return the byte index of the first occurrence of any byte contained in values, bounded by fromByteIndex (inclusive) and maxByteIndex (exclusive). create(): Create a new ByteIndexOfAnyByteNode. getUncached(): Get the uncached version of ByteIndexOfAnyByteNode. - [◆ TruffleString.ByteIndexOfCodePointNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ByteIndexOfCodePointNode.md): IndexOfCodePointNode, but with byte indices. execute(AbstractTruffleString, int, …): IndexOfCodePointNode, but with byte indices. create(): Create a new ByteIndexOfCodePointNode. getUncached(): Get the uncached version of ByteIndexOfCodePointNode. - [◆ TruffleString.ByteIndexOfCodePointSetNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ByteIndexOfCodePointSetNode.md): Node to find the byte index of the first occurrence of a codepoint present in a given codepoint set. execute(AbstractTruffleString, int, …): Returns the byte index of the first codepoint present in the given CodePointSet, bounded by fromByteIndex (inclusive) and toByteIndex (exclusive). execute(AbstractTruffleString, int, …): Returns the byte index of the first codepoint present in the given CodePointSet, bounded by fromByteIndex (inclusive) and toByteIndex (exclusive). create(): Create a new ByteIndexOfCodePointSetNode. getUncached(): Get the uncached version of ByteIndexOfCodePointSetNode. - [◆ TruffleString.ByteIndexOfStringNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ByteIndexOfStringNode.md): IndexOfStringNode, but with byte indices. execute(AbstractTruffleString, AbstractTruffleString, …): IndexOfStringNode, but with byte indices. execute(AbstractTruffleString, TruffleString.WithMask, …): IndexOfStringNode, but with byte indices. create(): Create a new ByteIndexOfStringNode. getUncached(): Get the uncached version of ByteIndexOfStringNode. - [◆ TruffleString.ByteIndexOfStringSetNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ByteIndexOfStringSetNode.md): Node to find the byte index of the first occurrence of any string contained in a given string set. execute(AbstractTruffleString, int, …): Returns the byte index of the first occurrence of any string present in the given StringSet, bounded by fromByteIndex (inclusive) and toByteIndex (exclusive). unpackResultByteIndex(long): Returns the byte index part of a result returned by execute(AbstractTruffleString, int, int, TruffleString.StringSet). unpackResultPatternIndex(long): Returns the pattern index part of a result returned by execute(AbstractTruffleString, int, int, TruffleString.StringSet). resultIsMatch(long): Returns true if the given result, as returned by execute(AbstractTruffleString - [◆ TruffleString.ByteIndexToCodePointIndexNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ByteIndexToCodePointIndexNode.md): Node to convert a given byte index to a codepoint index. execute(AbstractTruffleString, int, …): Convert the given byte index to a codepoint index, relative to starting point byteOffset. create(): Create a new ByteIndexToCodePointIndexNode. getUncached(): Get the uncached version of ByteIndexToCodePointIndexNode. - [◆ TruffleString.ByteLengthOfCodePointNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ByteLengthOfCodePointNode.md): Node to get the number of bytes occupied by the codepoint starting at a given byte index. execute(AbstractTruffleString, int, TruffleString.Encoding): Get the number of bytes occupied by the codepoint starting at byteIndex, with best-effort error handling. execute(AbstractTruffleString, int, …): Get the number of bytes occupied by the codepoint starting at byteIndex. create(): Create a new ByteLengthOfCodePointNode. getUncached(): Get the uncached version of ByteLengthOfCodePointNode. - [◆ TruffleString.CharIndexOfAnyCharUTF16Node (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CharIndexOfAnyCharUTF16Node.md): Node to find the index of the first occurrence of any char from a given array. execute(AbstractTruffleString, int, …): Return the char index of the first occurrence of any char contained in values, bounded by fromCharIndex (inclusive) and maxCharIndex (exclusive). create(): Create a new CharIndexOfAnyCharUTF16Node. getUncached(): Get the uncached version of CharIndexOfAnyCharUTF16Node. - [◆ TruffleString.CodePointAtByteIndexNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CodePointAtByteIndexNode.md): Node to read a codepoint at a given byte index. execute(AbstractTruffleString, int, TruffleString.Encoding): Decode and return the codepoint at byte index i, with best-effort error handling. execute(AbstractTruffleString, int, …): Decode and return the codepoint at byte index i. create(): Create a new CodePointAtByteIndexNode. getUncached(): Get the uncached version of CodePointAtByteIndexNode. - [◆ TruffleString.CodePointAtIndexNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CodePointAtIndexNode.md): Node to read a codepoint at a given codepoint index. execute(AbstractTruffleString, int, TruffleString.Encoding): Decode and return the codepoint at codepoint index i, with best-effort error handling. execute(AbstractTruffleString, int, …): Decode and return the codepoint at codepoint index i. create(): Create a new CodePointAtIndexNode. getUncached(): Get the uncached version of CodePointAtIndexUTF32Node. - [◆ TruffleString.CodePointAtIndexUTF32Node (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CodePointAtIndexUTF32Node.md): Node to read a codepoint at a given codepoint index from a UTF-32 string. execute(AbstractTruffleString, int): Decode and return the codepoint at codepoint index i. create(): Create a new CodePointAtIndexUTF32Node. getUncached(): Get the uncached version of CodePointAtIndexUTF32Node. - [◆ TruffleString.CodePointIndexToByteIndexNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CodePointIndexToByteIndexNode.md): Node to convert a given codepoint index to a byte index. execute(AbstractTruffleString, int, …): Convert the given codepoint index to a byte index, relative to starting point byteOffset. create(): Create a new CodePointIndexToByteIndexNode. getUncached(): Get the uncached version of CodePointIndexToByteIndexNode. - [◆ TruffleString.CodePointLengthNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CodePointLengthNode.md): Node to get the number of codepoints in a string. execute(AbstractTruffleString, TruffleString.Encoding): Return the number of codepoints in the string. create(): Create a new CodePointLengthNode. getUncached(): Get the uncached version of CodePointLengthNode. - [◆ TruffleString.CodePointSet (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CodePointSet.md): A set of codepoints in a given encoding. fromRanges(int\[\], TruffleString.Encoding): Creates a new CodePointSet from the given list of ranges. isIntrinsicCandidate(TruffleString.CodeRange): Returns true if ByteIndexOfCodePointSetNode may implement the search for this particular code point set in strings with the given code range by dispatching to a compiler int - [≡ TruffleString.CodeRange (enum class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CodeRange.md): Provides information about a string's content. ASCII: All codepoints in this string are part of the Basic Latin Unicode block, also known as ASCII (0x00 - 0x7f). LATIN_1: All codepoints in this string are part of the ISO-8859-1 character set (0x00 - 0xff), which is equivalent to the union of the Basic Latin and the Latin-1 Supplement Unicode block. BMP: All codepoints in this string are part of the Unicode Basic Multilingual Plane (BMP) ( 0x0000 - 0xffff). VALID: This string is encoded correctly (IsValidNode returns true), and if this code range is precise, at least one codepoint is outside the largest other applicable code range (e.g. BRO - [◆ TruffleString.CodeRangeEqualsNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CodeRangeEqualsNode.md): Node to check if a string's code range is equal to the given CodeRange. execute(AbstractTruffleString, TruffleString.CodeRange): Returns true if the string's code range is equal to the given CodeRange. create(): Create a new CodeRangeEqualsNode. getUncached(): Get the uncached version of CodeRangeEqualsNode. - [≡ TruffleString.CompactionLevel (enum class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CompactionLevel.md): Represents a string's compaction level, i.e. S1: One byte per array element. S2: Two bytes per array element. S4: Four bytes per array element. getBytes(): Get the number of bytes per internal array element. getLog2(): Get the number of bytes per internal array element in log2 format. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [◆ TruffleString.CompareBytesNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CompareBytesNode.md): Node to compare two strings byte-by-byte. execute(AbstractTruffleString, AbstractTruffleString, TruffleString.Encoding): Compare strings a and b byte-by-byte. create(): Create a new CompareBytesNode. getUncached(): Get the uncached version of CompareBytesNode. - [◆ TruffleString.CompareCharsUTF16Node (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CompareCharsUTF16Node.md): Node to compare two UTF-16 strings. execute(AbstractTruffleString, AbstractTruffleString): Compare UTF-16 strings a and b char-by-char. create(): Create a new CompareCharsUTF16Node. getUncached(): Get the uncached version of CompareCharsUTF16Node. - [◆ TruffleString.CompareIntsUTF32Node (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CompareIntsUTF32Node.md): Node to compare two UTF-32 strings. execute(AbstractTruffleString, AbstractTruffleString): Compare UTF-32 strings a and b int-by-int. create(): Create a new CompareIntsUTF32Node. getUncached(): Get the uncached version of CompareIntsUTF32Node. - [◆ TruffleString.ConcatNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ConcatNode.md): Node to concatenate two strings. execute(AbstractTruffleString, AbstractTruffleString, …): Create a new string by concatenating a and b. create(): Create a new ConcatNode. getUncached(): Get the uncached version of ConcatNode. - [◆ TruffleString.CopyToByteArrayNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CopyToByteArrayNode.md): Node to copy a region of a string into a byte array. execute(AbstractTruffleString, TruffleString.Encoding): Copy the entire string to a byte\[\] and return it. execute(AbstractTruffleString, int, …): Copy a region of the given TruffleString a, bounded by byteFromIndexA and byteLength into the given byte array, at starting at byteFromIndexDst. create(): Create a new CopyToByteArrayNode. getUncached(): Get the uncached version of CopyToByteArrayNode. - [◆ TruffleString.CopyToNativeMemoryNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CopyToNativeMemoryNode.md): Node to copy a region of a string into native memory. execute(AbstractTruffleString, int, …): Copy a region of the given TruffleString a, bounded by byteFromIndexA and byteLength into the given interop object representing a native pointer (isPointer(pointerObject) must retu create(): Create a new CopyToNativeMemoryNode. getUncached(): Get the uncached version of CopyToNativeMemoryNode. - [◆ TruffleString.CreateBackwardCodePointIteratorNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CreateBackwardCodePointIteratorNode.md): Node to create a TruffleStringIterator. execute(AbstractTruffleString, TruffleString.Encoding): Returns a TruffleStringIterator, which allows iterating this string's code points, with best-effort error handling. execute(AbstractTruffleString, TruffleString.Encoding, TruffleString.ErrorHandling): Returns a TruffleStringIterator, which allows iterating this string's code points. create(): Create a new CreateBackwardCodePointIteratorNode. getUncached(): Get the uncached version of CreateBackwardCodePointIteratorNode. - [◆ TruffleString.CreateCodePointIteratorNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.CreateCodePointIteratorNode.md): Node to create a TruffleStringIterator. execute(AbstractTruffleString, TruffleString.Encoding): Returns a TruffleStringIterator, which allows iterating this string's code points, with best-effort error handling. execute(AbstractTruffleString, TruffleString.Encoding, TruffleString.ErrorHandling): Returns a TruffleStringIterator, which allows iterating this string's code points. create(): Create a new CreateCodePointIteratorNode. getUncached(): Get the uncached version of CreateCodePointIteratorNode. - [≡ TruffleString.Encoding (enum class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.Encoding.md): The list of encodings supported by TruffleString. UTF_32LE: UTF-32LE. UTF_32BE: UTF-32BE. UTF_16LE: UTF-16LE. UTF_16BE: UTF-16BE. ISO_8859_1: ISO-8859-1, also known as LATIN-1, which is equivalent to US-ASCII + the LATIN-1 Supplement Unicode block. UTF_8: UTF-8. US_ASCII: US-ASCII, which maps only 7-bit characters. BYTES: Special "encoding" BYTES: This encoding is identical to US-ASCII, but treats all values outside the us-ascii range as valid codepoints as well. - [◆ TruffleString.EqualNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.EqualNode.md): Node to check two strings for equality. execute(AbstractTruffleString, AbstractTruffleString, TruffleString.Encoding): Returns true if a and b are byte-by-byte equal when considered in expectedEncoding. create(): Create a new EqualNode. getUncached(): Get the uncached version of EqualNode. - [≡ TruffleString.ErrorHandling (enum class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ErrorHandling.md): Error handling instructions for operations that return integer values, such as indices or code points. BEST_EFFORT: This mode generally means that the operation will try to determine the "most reasonable" or "most useful" return value in respect to the expected encoding and the error that occurred. RETURN_NEGATIVE: This mode will cause a negative value to be returned in all error cases. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [◆ TruffleString.ForceEncodingNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ForceEncodingNode.md): Node to forcibly assign any encoding to a string. execute(AbstractTruffleString, TruffleString.Encoding, TruffleString.Encoding): Returns a version of string a assigned to the given encoding, which may be the string itself or a new string. create(): Create a new ForceEncodingNode. getUncached(): Get the uncached version of ForceEncodingNode. - [◆ TruffleString.FromByteArrayNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.FromByteArrayNode.md): Node to create a new TruffleString from a byte array. execute(byte\[\], TruffleString.Encoding): Creates a new TruffleString from a byte array. execute(byte\[\], TruffleString.Encoding, boolean): Creates a new TruffleString from a byte array. execute(byte\[\], int, …): Creates a new TruffleString from a byte array. create(): Create a new FromByteArrayNode. getUncached(): Get the uncached version of FromByteArrayNode. - [◆ TruffleString.FromByteArrayWithCompactionUTF32Node (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.FromByteArrayWithCompactionUTF32Node.md): Node to create a new TruffleString from a byte array. execute(byte\[\], int, …): UTF-32-specific version of FromByteArrayNode that accepts compacted buffers. create(): Create a new FromByteArrayWithCompactionUTF32Node. getUncached(): Get the uncached version of FromByteArrayWithCompactionUTF32Node. - [◆ TruffleString.FromCharArrayUTF16Node (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.FromCharArrayUTF16Node.md): Node to create a new UTF-16 TruffleString from a char array. execute(char\[\]): Creates a UTF-16 TruffleString from a char array. execute(char\[\], int, int): Creates a UTF-16 TruffleString from a char-array. create(): Create a new FromCharArrayUTF16Node. getUncached(): Get the uncached version of FromCharArrayUTF16Node. - [◆ TruffleString.FromCodePointNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.FromCodePointNode.md): Node to create a new TruffleString from a single codepoint. execute(int, TruffleString.Encoding): Creates a new TruffleString from a given code point. execute(int, TruffleString.Encoding, boolean): Creates a new TruffleString from a given code point. Returns: a new TruffleString, or null if the given codepoint is not defined in the given encoding. create(): Create a new FromCodePointNode. getUncached(): Get the uncached version of FromCodePointNode. - [◆ TruffleString.FromIntArrayUTF32Node (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.FromIntArrayUTF32Node.md): Node to create a new UTF-32 TruffleString from an int-array. execute(int\[\]): Creates a UTF-32 TruffleString from an int-array. execute(int\[\], int, int): Creates a UTF-32 TruffleString from an int-array. create(): Create a new FromIntArrayUTF32Node. getUncached(): Get the uncached version of FromIntArrayUTF32Node. - [◆ TruffleString.FromJavaStringNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.FromJavaStringNode.md): Node to create a new TruffleString from a Java string. execute(String, TruffleString.Encoding): Creates a TruffleString from a Java string, re-using its internal byte array if possible. execute(String, int, …): Creates a TruffleString from a given region in a Java string, re-using its internal byte array if possible and the region covers the entire string. create(): Create a new FromJavaStringNode. getUncached(): Get the uncached version of FromJavaStringNode. - [◆ TruffleString.FromLongNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.FromLongNode.md): Node to create a new TruffleString from a long value. execute(long, TruffleString.Encoding, boolean): Creates a 10's complement string from the given long value, using ASCII digits (0x30 - 0x39). create(): Create a new FromLongNode. getUncached(): Get the uncached version of FromLongNode. - [◆ TruffleString.FromNativePointerNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.FromNativePointerNode.md): Node to create a new TruffleString from an interop object representing a native pointer. execute(Object, int, …): Create a new TruffleString from an interop object representing a native pointer ( isPointer(pointerObject) must return true). create(): Create a new FromNativePointerNode. getUncached(): Get the uncached version of FromNativePointerNode. - [◆ TruffleString.FromNativePointerWithCompactionUTF32Node (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.FromNativePointerWithCompactionUTF32Node.md): Node to create a new TruffleString from an interop object representing a native pointer. execute(Object, int, …): Native buffer variant of FromByteArrayWithCompactionUTF32Node. create(): Create a new FromNativePointerWithCompactionUTF32Node. getUncached(): Get the uncached version of FromNativePointerWithCompactionUTF32Node. - [◆ TruffleString.FromZeroTerminatedNativePointerNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.FromZeroTerminatedNativePointerNode.md): Equivalent to FromNativePointerNode for zero-terminated buffers, i.e. execute8Bit(Object, int, …): Equivalent to FromNativePointerNode.execute with the only difference being that the native buffer's length is determined by the position of the first 8-bit zero value in the buffer. execute16Bit(Object, int, …): Equivalent to FromNativePointerNode.execute with the only difference being that the native buffer's length is determined by the position of the first 16-bit zero value in the buffer. execute32Bit(Object, int, …): Equivalent to FromNativePointerNode.execute with the only difference being that the native buffer's length is determined by the position of the fi - [◆ TruffleString.GetByteCodeRangeNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.GetByteCodeRangeNode.md): Node to get a string's "byte-based" CodeRange. execute(AbstractTruffleString, TruffleString.Encoding): Get the string's "byte-based" CodeRange. create(): Create a new GetByteCodeRangeNode. getUncached(): Get the uncached version of GetByteCodeRangeNode. - [◆ TruffleString.GetCodeRangeImpreciseNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.GetCodeRangeImpreciseNode.md): Node to get a string's possibly imprecise CodeRange. execute(AbstractTruffleString, TruffleString.Encoding): Get the string's possibly imprecise CodeRange. create(): Create a new GetCodeRangeImpreciseNode. getUncached(): Get the uncached version of GetCodeRangeImpreciseNode. - [◆ TruffleString.GetCodeRangeNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.GetCodeRangeNode.md): Node to get a string's precise CodeRange. execute(AbstractTruffleString, TruffleString.Encoding): Get the string's precise CodeRange. create(): Create a new GetCodeRangeNode. getUncached(): Get the uncached version of GetCodeRangeNode. - [◆ TruffleString.GetInternalByteArrayNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.GetInternalByteArrayNode.md): Node to get a string's internal byte array. execute(AbstractTruffleString, TruffleString.Encoding): Get the given string's internal byte array. create(): Create a new GetInternalByteArrayNode. getUncached(): Get the uncached version of GetInternalByteArrayNode. - [◆ TruffleString.GetInternalNativePointerNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.GetInternalNativePointerNode.md): Node to get a native string's pointer object or raw pointer. execute(AbstractTruffleString, TruffleString.Encoding): Get the given string's pointer object which was passed to FromNativePointerNode. create(): Create a new GetInternalNativePointerNode. getUncached(): Get the uncached version of GetInternalNativePointerNode. - [◆ TruffleString.GetStringCompactionLevelNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.GetStringCompactionLevelNode.md): Node to get a string's CompactionLevel. execute(AbstractTruffleString, TruffleString.Encoding): Get the string's CompactionLevel. create(): Create a new GetStringCompactionLevelNode. getUncached(): Get the uncached version of GetStringCompactionLevelNode. - [◆ TruffleString.HashCodeNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.HashCodeNode.md): Node to get a string's hash code. execute(AbstractTruffleString, TruffleString.Encoding): Returns the string's hash code. create(): Create a new HashCodeNode. getUncached(): Get the uncached version of HashCodeNode. - [⚡︎ TruffleString.IllegalByteArrayLengthException (exception in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.IllegalByteArrayLengthException.md): This exception is thrown when any operation tries to create a UTF-16 or UTF-32 string with an invalid byte length (not a multiple of 2/4 bytes). - [◆ TruffleString.IndexOfCodePointNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.IndexOfCodePointNode.md): Node to find the index of the first occurrence of a given code point. execute(AbstractTruffleString, int, …): Return the codepoint index of the first occurrence of codepoint, bounded by fromIndex (inclusive) and toIndex (exclusive), if no occurrence is found return a negative value. create(): Create a new IndexOfCodePointNode. getUncached(): Get the uncached version of IndexOfCodePointNode. - [◆ TruffleString.IndexOfStringNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.IndexOfStringNode.md): Node to find the index of the first occurrence of a given string. execute(AbstractTruffleString, AbstractTruffleString, …): Return the codepoint index of the first occurrence of string, bounded by fromIndex (inclusive) and toIndex (exclusive), if no occurrence is found return a negativ create(): Create a new IndexOfStringNode. getUncached(): Get the uncached version of IndexOfStringNode. - [◆ TruffleString.IntIndexOfAnyIntUTF32Node (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.IntIndexOfAnyIntUTF32Node.md): Node to find the index of the first occurrence of any int from a given array. execute(AbstractTruffleString, int, …): Return the int index of the first occurrence of any int contained in values, bounded by fromIntIndex (inclusive) and maxIntIndex (exclusive). create(): Create a new IntIndexOfAnyIntUTF32Node. getUncached(): Get the uncached version of IntIndexOfAnyIntUTF32Node. - [◆ TruffleString.IsValidNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.IsValidNode.md): Node to check if a string is encoded correctly. execute(AbstractTruffleString, TruffleString.Encoding): Returns true if the string encoded correctly. create(): Create a new IsValidNode. getUncached(): Get the uncached version of IsValidNode. - [◆ TruffleString.LastByteIndexOfCodePointNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.LastByteIndexOfCodePointNode.md): LastIndexOfCodePointNode, but with byte indices. execute(AbstractTruffleString, int, …): LastIndexOfCodePointNode, but with byte indices. create(): Create a new LastByteIndexOfCodePointNode. getUncached(): Get the uncached version of LastByteIndexOfCodePointNode. - [◆ TruffleString.LastByteIndexOfStringNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.LastByteIndexOfStringNode.md): LastIndexOfStringNode, but with byte indices. execute(AbstractTruffleString, AbstractTruffleString, …): LastIndexOfStringNode, but with byte indices. execute(AbstractTruffleString, TruffleString.WithMask, …): LastIndexOfStringNode, but with byte indices. create(): Create a new LastByteIndexOfStringNode. getUncached(): Get the uncached version of LastByteIndexOfStringNode. - [◆ TruffleString.LastIndexOfCodePointNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.LastIndexOfCodePointNode.md): Node to find the codepoint index of the last occurrence of a given code point. execute(AbstractTruffleString, int, …): Return the codepoint index of the last occurrence of codepoint, bounded by fromIndex (exclusive upper limit) and toIndex (inclusive lower limit), if no occurrence is found return a create(): Create a new LastIndexOfCodePointNode. getUncached(): Get the uncached version of LastIndexOfCodePointNode. - [◆ TruffleString.LastIndexOfStringNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.LastIndexOfStringNode.md): Node to find the index of the last occurrence of a given string. execute(AbstractTruffleString, AbstractTruffleString, …): Return the codepoint index of the last occurrence of string, bounded by fromIndex (exclusive upper limit) and toIndex (inclusive lower limit), if no occurrence is create(): Create a new LastIndexOfStringNode. getUncached(): Get the uncached version of LastIndexOfStringNode. - [◆ TruffleString.MaterializeNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.MaterializeNode.md): Node to force materialization of any lazy internal data. execute(AbstractTruffleString, TruffleString.Encoding): Forces materialization of any lazy internal data. create(): Create a new MaterializeNode. getUncached(): Get the uncached version of MaterializeNode. - [◆ TruffleString.MaterializeSubstringNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.MaterializeSubstringNode.md): Extended version of MaterializeNode that also materializes substrings/string views created via e.g. execute(AbstractTruffleString, TruffleString.Encoding): Extended version of MaterializeNode that also materializes substrings/string views created via e.g. create(): Create a new MaterializeSubstringNode. getUncached(): Get the uncached version of MaterializeSubstringNode. - [⚡︎ TruffleString.NumberFormatException (exception in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.NumberFormatException.md): This exception may be thrown by ParseIntNode, ParseLongNode or ParseDoubleNode to indicate that the given string cannot be parsed as an integer, long or double value. getMessage(): Returns a detailed error message. fillInStackTrace(): No stack trace for this exception. - [◆ TruffleString.ParseDoubleNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ParseDoubleNode.md): Node to parse a given string as a double value. execute(AbstractTruffleString): Parse the given string as a double value, or throw NumberFormatException. Throws: TruffleString.NumberFormatException create(): Create a new ParseDoubleNode. getUncached(): Get the uncached version of ParseDoubleNode. - [◆ TruffleString.ParseIntNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ParseIntNode.md): Node to parse a given string as an int value. execute(AbstractTruffleString, int): Parse the given string as an int value, or throw NumberFormatException. Throws: TruffleString.NumberFormatException create(): Create a new ParseIntNode. getUncached(): Get the uncached version of ParseIntNode. - [◆ TruffleString.ParseLongNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ParseLongNode.md): Node to parse a given string as a long value. execute(AbstractTruffleString, int): Parse the given string as a long value, or throw NumberFormatException. Throws: TruffleString.NumberFormatException create(): Create a new ParseLongNode. getUncached(): Get the uncached version of ParseLongNode. - [◆ TruffleString.ReadByteNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ReadByteNode.md): Node to read a single byte from a string. execute(AbstractTruffleString, int, TruffleString.Encoding): Read a single byte from a string. create(): Create a new ReadByteNode. getUncached(): Get the uncached version of ReadByteNode. - [◆ TruffleString.ReadCharUTF16Node (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ReadCharUTF16Node.md): Node to read a single char from a UTF-16 string. execute(AbstractTruffleString, int): Read a single char from a UTF-16 string. executeLE(AbstractTruffleString, int): Read a single char from a UTF-16LE string. executeBE(AbstractTruffleString, int): Read a single char from a UTF-16BE string. create(): Create a new ReadCharUTF16Node. getUncached(): Get the uncached version of ReadCharUTF16Node. - [◆ TruffleString.RegionEqualByteIndexNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.RegionEqualByteIndexNode.md): Node to check for a region match, byte-by-byte. execute(AbstractTruffleString, int, …): Checks for a region match, byte-by-byte. execute(AbstractTruffleString, int, …): Checks for a region match, byte-by-byte. create(): Create a new RegionEqualByteIndexNode. getUncached(): Get the uncached version of RegionEqualByteIndexNode. - [◆ TruffleString.RegionEqualNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.RegionEqualNode.md): Node to check codepoint equality of two string regions. execute(AbstractTruffleString, int, …): Checks for codepoint equality in a region with the given codepoint index and codepoint length. create(): Create a new RegionEqualNode. getUncached(): Get the uncached version of RegionEqualNode. - [◆ TruffleString.RepeatNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.RepeatNode.md): Node to repeat a given string N times. execute(AbstractTruffleString, int, TruffleString.Encoding): Create a new string by repeating n times string a. create(): Create a new RepeatNode. getUncached(): Get the uncached version of RepeatNode. - [◆ TruffleString.StringSet (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.StringSet.md): A set of strings in a given encoding. fromArray(AbstractTruffleString\[\], TruffleString.Encoding): Creates a new StringSet from the given array of strings. fromArray(TruffleString.WithMask\[\], TruffleString.Encoding): Creates a new StringSet from the given array of strings with masks. isIntrinsicCandidate(TruffleString.CodeRange): Returns true if ByteIndexOfStringSetNode may implement the search for this particular string set in strings with the given code range by dispatching to a compiler intrinsic. - [◆ TruffleString.SubstringByteIndexNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.SubstringByteIndexNode.md): SubstringNode, but with byte indices. execute(AbstractTruffleString, int, …): SubstringNode, but with byte indices. create(): Create a new SubstringByteIndexNode. getUncached(): Get the uncached version of SubstringByteIndexNode. - [◆ TruffleString.SubstringNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.SubstringNode.md): Node to create a substring of a given string. execute(AbstractTruffleString, int, …): Create a substring of a, starting from codepoint index fromIndex, with codepoint length length. create(): Create a new SubstringNode. getUncached(): Get the uncached version of SubstringNode. - [◆ TruffleString.SwitchEncodingNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.SwitchEncodingNode.md): Node to get a given string in a specific encoding. execute(AbstractTruffleString, TruffleString.Encoding): Returns a version of string a that is encoded in the given encoding, which may be the string itself or a converted version. execute(AbstractTruffleString, TruffleString.Encoding, TranscodingErrorHandler): Returns a version of string a that is encoded in the given encoding, which may be the string itself or a converted version. create(): Create a new SwitchEncodingNode. getUncached(): Get the uncached version of SwitchEncodingNode. - [◆ TruffleString.ToJavaStringNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ToJavaStringNode.md): Node to get a java.lang.String representation of a TruffleString. execute(AbstractTruffleString): Return a java.lang.String representation of the given TruffleString. create(): Create a new ToJavaStringNode. getUncached(): Get the uncached version of ToJavaStringNode. - [◆ TruffleString.ToValidStringNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.ToValidStringNode.md): Node to replace all invalid bytes in a given string, such that the resulting string is valid. execute(AbstractTruffleString, TruffleString.Encoding): Returns a version of string a that contains only valid codepoints, which may be the string itself or a converted version. create(): Create a new SwitchEncodingNode. getUncached(): Get the uncached version of SwitchEncodingNode. - [◆ TruffleString.WithMask (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.WithMask.md): Extended parameter type for the operations ByteIndexOfStringNode, LastByteIndexOfStringNode and RegionEqualByteIndexNode. createUncached(AbstractTruffleString, byte\[\], TruffleString.Encoding): Shorthand for calling the uncached version of CreateNode. createUTF16Uncached(AbstractTruffleString, char\[\]): Shorthand for calling the uncached version of CreateUTF16Node. createUTF32Uncached(AbstractTruffleString, int\[\]): Shorthand for calling the uncached version of CreateUTF32Node. - [◆ TruffleString.WithMask.CreateNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.WithMask.CreateNode.md): Node to create a new WithMask from a string and a byte array. execute(AbstractTruffleString, byte\[\], TruffleString.Encoding): Creates a new WithMask from a and mask. create(): Create a new TruffleString.WithMask.CreateNode. getUncached(): Get the uncached version of TruffleString.WithMask.CreateNode. - [◆ TruffleString.WithMask.CreateUTF16Node (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.WithMask.CreateUTF16Node.md): Node to create a new WithMask from a UTF-16 string and a char array. execute(AbstractTruffleString, char\[\]): Creates a new WithMask from a and mask. create(): Create a new TruffleString.WithMask.CreateNode. getUncached(): Get the uncached version of TruffleString.WithMask.CreateNode. - [◆ TruffleString.WithMask.CreateUTF32Node (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleString.WithMask.CreateUTF32Node.md): Node to create a new WithMask from a UTF-32 string and an int array. execute(AbstractTruffleString, int\[\]): Creates a new WithMask from a and mask. create(): Create a new TruffleString.WithMask.CreateNode. getUncached(): Get the uncached version of TruffleString.WithMask.CreateNode. - [◆ TruffleStringBuilder (sealed abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringBuilder.md): The TruffleString equivalent to java.lang.StringBuilder. isEmpty(): Returns true if this string builder is empty. byteLength(): Returns this string builder's byte length. create(TruffleString.Encoding): Create a new string builder with the given encoding. create(TruffleString.Encoding, int): Create a new string builder with the given encoding, and pre-allocate the given number of bytes. createUTF8(): Create a new UTF-8 string builder. createUTF8(int): Create a new UTF-8 string builder and pre-allocate the given number of bytes. createUTF16(): Create a new UTF-16 string builder. createUTF16(int): Create a new UTF-16 string builder and pre-allocate th - [◆ TruffleStringBuilder.AppendByteNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringBuilder.AppendByteNode.md): Node to append a single byte to a string builder. execute(TruffleStringBuilder, byte): Append a single byte to the string builder. execute(TruffleStringBuilderUTF8, byte): Overload of execute(TruffleStringBuilder, byte) for performance reasons. create(): Create a new AppendByteNode. getUncached(): Get the uncached version of AppendByteNode. - [◆ TruffleStringBuilder.AppendCharUTF16Node (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringBuilder.AppendCharUTF16Node.md): Node to append a single char to a string builder. execute(TruffleStringBuilderUTF16, char): Append a single char to the string builder. create(): Create a new AppendCharUTF16Node. getUncached(): Get the uncached version of AppendCharUTF16Node. - [◆ TruffleStringBuilder.AppendCodePointNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringBuilder.AppendCodePointNode.md): Node to append a codepoint to a string builder. execute(TruffleStringBuilder, int): Append a codepoint to the string builder. execute(TruffleStringBuilderUTF8, int): Overload of execute(TruffleStringBuilder, int) for performance reasons. execute(TruffleStringBuilderUTF16, int): Overload of execute(TruffleStringBuilder, int) for performance reasons. execute(TruffleStringBuilderUTF32, int): Overload of execute(TruffleStringBuilder, int) for performance reasons. execute(TruffleStringBuilder, int, int): Append a codepoint to the string builder, repeat times. execute(TruffleStringBuilderUTF8, int, int): Overload of execute(TruffleStringBuilder, - [◆ TruffleStringBuilder.AppendIntNumberNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringBuilder.AppendIntNumberNode.md): Node to append an integer to a string builder. execute(TruffleStringBuilder, int): Append the base-10 string equivalent of a given integer to the string builder. execute(TruffleStringBuilderUTF8, int): Overload of execute(TruffleStringBuilder, int) for performance reasons. execute(TruffleStringBuilderUTF16, int): Overload of execute(TruffleStringBuilder, int) for performance reasons. execute(TruffleStringBuilderUTF32, int): Overload of execute(TruffleStringBuilder, int) for performance reasons. create(): Create a new AppendIntNumberNode. getUncached(): Get the uncached version of AppendIntNumberNode. - [◆ TruffleStringBuilder.AppendJavaStringUTF16Node (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringBuilder.AppendJavaStringUTF16Node.md): Node to append a substring of a given java.lang.String to a string builder. execute(TruffleStringBuilderUTF16, String): Append a substring of a given java.lang.String to the string builder. execute(TruffleStringBuilderUTF16, String, …): Append a substring of a given java.lang.String, starting at char index fromIndex and ending at fromIndex + length, to the string builder. create(): Create a new AppendJavaStringUTF16Node. getUncached(): Get the uncached version of AppendJavaStringUTF16Node. - [◆ TruffleStringBuilder.AppendLongNumberNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringBuilder.AppendLongNumberNode.md): Node to append a long value to a string builder. execute(TruffleStringBuilder, long): Append the base-10 string equivalent of a given long value to the string builder. execute(TruffleStringBuilderUTF8, long): Overload of execute(TruffleStringBuilder, long) for performance reasons. execute(TruffleStringBuilderUTF16, long): Overload of execute(TruffleStringBuilder, long) for performance reasons. execute(TruffleStringBuilderUTF32, long): Overload of execute(TruffleStringBuilder, long) for performance reasons. create(): Create a new AppendLongNumberNode. getUncached(): Get the uncached version of AppendLongNumberNode. - [◆ TruffleStringBuilder.AppendStringNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringBuilder.AppendStringNode.md): Node to append a given TruffleString to a string builder. execute(TruffleStringBuilder, AbstractTruffleString): Append a given TruffleString to the string builder. create(): Create a new AppendStringNode. getUncached(): Get the uncached version of AppendStringNode. - [◆ TruffleStringBuilder.AppendSubstringByteIndexNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringBuilder.AppendSubstringByteIndexNode.md): Node to append a substring of a given TruffleString to a string builder. execute(TruffleStringBuilder, AbstractTruffleString, …): Append a substring of a given TruffleString, starting at byte index fromByteIndex and ending at byte index fromByteIndex + byteLength, to the string builder. execute(TruffleStringBuilderUTF8, AbstractTruffleString, …): Overload of execute(TruffleStringBuilder, AbstractTruffleString, int, int) for performance reasons. execute(TruffleStringBuilderUTF16, AbstractTruffleString, …): Overload of execute(TruffleStringBuilder, AbstractTruffleString, int, int) for performance reasons. execute(TruffleStringBuilderUTF32, AbstractTruffleString, …): - [◆ TruffleStringBuilder.ToStringNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringBuilder.ToStringNode.md): Node to materialize a string builder as a TruffleString. execute(TruffleStringBuilder): Materialize this string builder to a TruffleString. execute(TruffleStringBuilderUTF8): Overload of execute(TruffleStringBuilder) for performance reasons. execute(TruffleStringBuilderUTF16): Overload of execute(TruffleStringBuilder) for performance reasons. execute(TruffleStringBuilderUTF32): Overload of execute(TruffleStringBuilder) for performance reasons. execute(TruffleStringBuilder, boolean): Materialize this string builder to a TruffleString. execute(TruffleStringBuilderUTF8, boolean): Overload of execute(TruffleStringBuilder, boolean) for performance reason - [◆ TruffleStringBuilderFactory (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringBuilderFactory.md) - [◆ TruffleStringBuilderUTF16 (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringBuilderUTF16.md): The UTF-16-specific variant of TruffleStringBuilder. - [◆ TruffleStringBuilderUTF32 (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringBuilderUTF32.md): The UTF-32-specific variant of TruffleStringBuilder. - [◆ TruffleStringBuilderUTF8 (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringBuilderUTF8.md): The UTF-8-specific variant of TruffleStringBuilder. - [◆ TruffleStringFactory (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringFactory.md) - [◆ TruffleStringFactory.WithMaskFactory (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringFactory.WithMaskFactory.md) - [◆ TruffleStringIterator (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringIterator.md): An iterator object that allows iterating over a TruffleString's codepoints, without having to re-calculate codepoint indices on every access. hasNext(): Returns true if there are more codepoints remaining. hasPrevious(): Returns true if there are more codepoints remaining in reverse direction. getByteIndex(): Returns the next codepoint's byte index, where "byte index" refers the codepoint's first byte in forward mode, while in backward mode it refers to the first byte after the codepoint. nextUncached(): Deprecated. use nextUncached(Encoding) instead. Shorthand for calling the uncached version of NextNode. nextUncached(TruffleString.Encoding): Shorthand for calling the uncached version of NextNode. previousUncached(): Deprecated. us - [◆ TruffleStringIterator.NextNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringIterator.NextNode.md): Returns the next codepoint in the string. execute(TruffleStringIterator): Deprecated. use execute(TruffleStringIterator, Encoding) instead. Returns the next codepoint in the string. execute(TruffleStringIterator, TruffleString.Encoding): Returns the next codepoint in the string. create(): Create a new NextNode. getUncached(): Get the uncached version of NextNode. - [◆ TruffleStringIterator.PreviousNode (abstract class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringIterator.PreviousNode.md): Returns the previous codepoint in the string. execute(TruffleStringIterator): Deprecated. use execute(TruffleStringIterator, Encoding) instead. Returns the previous codepoint in the string. execute(TruffleStringIterator, TruffleString.Encoding): Returns the previous codepoint in the string. create(): Create a new PreviousNode. getUncached(): Get the uncached version of PreviousNode. - [◆ TruffleStringIteratorFactory (class in com.oracle.truffle.api.strings)](com/oracle/truffle/api/strings/TruffleStringIteratorFactory.md) - [▣ Package com.oracle.truffle.api.utilities](com/oracle/truffle/api/utilities/index.md): Various utility classes that aim to make the development of TruffleLanguage guest languages easier. - [◆ AssumedValue (class in com.oracle.truffle.api.utilities)](com/oracle/truffle/api/utilities/AssumedValue.md): A value that the compiler can assume is constant, but can be changed by invalidation. get(): Get the current value, updating it if it has been set. set(T): Set a new value, which will be picked up the next time get is called. - [◆ CyclicAssumption (class in com.oracle.truffle.api.utilities)](com/oracle/truffle/api/utilities/CyclicAssumption.md): Holds an Assumption, and knows how to recreate it with the same properties on invalidation. - [◆ FinalBitSet (class in com.oracle.truffle.api.utilities)](com/oracle/truffle/api/utilities/FinalBitSet.md): Read-only bitset designed for partial evaluation. EMPTY: An empty bit set of size 0. toLongArray(): Returns a new long array containing all the bits in this bit set. Returns: a long array containing a little-endian representation of all the bits in this bit set get(int): Returns the value of the bit with the specified index. Returns: the value of the bit with the specified index Throws: IndexOutOfBoundsException - if the specified index is negative length(): Returns the "logical size" of this FinalBitSet: the index of the highest set bit in the FinalBitSet plus one. Returns: the logical size of this FinalBitSet isEmpty(): Returns true if this - [◆ JSONHelper (class in com.oracle.truffle.api.utilities)](com/oracle/truffle/api/utilities/JSONHelper.md): Helper function that allows to dump the AST during creation to a JSON format. - [◆ JSONHelper.JSONArrayBuilder (class in com.oracle.truffle.api.utilities)](com/oracle/truffle/api/utilities/JSONHelper.JSONArrayBuilder.md) - [◆ JSONHelper.JSONObjectBuilder (class in com.oracle.truffle.api.utilities)](com/oracle/truffle/api/utilities/JSONHelper.JSONObjectBuilder.md) - [◆ JSONHelper.JSONStringBuilder (abstract class in com.oracle.truffle.api.utilities)](com/oracle/truffle/api/utilities/JSONHelper.JSONStringBuilder.md) - [◆ MathUtils (class in com.oracle.truffle.api.utilities)](com/oracle/truffle/api/utilities/MathUtils.md): This class contains mathematical methods that are not already provided by java.lang.Math that are generally useful for language implementations. asinh(double): Computes the inverse (area) hyperbolic sine (asinh) of a double value. Returns: The inverse hyperbolic sine of x. acosh(double): Computes the inverse (area) hyperbolic cosine (acosh) of a double value. Returns: The inverse hyperbolic cosine of x. atanh(double): Computes the inverse (area) hyperbolic tangent (atanh) of a double value. Returns: The inverse hyperbolic tangent of x. - [≡ TriState (enum class in com.oracle.truffle.api.utilities)](com/oracle/truffle/api/utilities/TriState.md): An utility value with three states, TRUE, FALSE, and UNDEFINED. TRUE: The state is true. FALSE: The state is false. UNDEFINED: The state is undefined. valueOf(boolean): Create a TriState from a primitive boolean. valueOf(Boolean): Create a TriState from a boxed Boolean explicitely checking for null and returning UNDEFINED. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [◆ TruffleWeakReference (class in com.oracle.truffle.api.utilities)](com/oracle/truffle/api/utilities/TruffleWeakReference.md): Creates a new weak reference that is safe to be used in compiled code paths. TruffleWeakReference(T): Creates a new Truffle weak reference that refers to the given object. TruffleWeakReference(T, ReferenceQueue): Creates a new Truffle weak reference that refers to the given object and is registered with the given queue. ## Indexes - [Packages](packages.md): every package with its summary and type counts - [All types](types.md): every type, nested ones too, by name - [Index](index-all.md): every declaration from A to Z - [Deprecated](deprecated.md): everything deprecated, for removal first